home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacOS Resource Fork
(archive/rsrc).
You can browse this item here: About Compilers.rsrc
id metadata |
---|
key | value |
---|
macFileType | [APPL] |
macFileCreator | [????] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| b3 fc 41 50 50 4c 3f 3f | 3f 3f 00 00 00 00 00 00 |..APPL??|??......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | b0 b3 00 00 af b3 00 00 |........|........|
|00000060| 03 49 05 22 2f 2d a7 60 | 3f 3c 00 0a 48 6e fe f0 |.I."/-.`|?<..Hn..|
|00000070| a9 47 4e ad 09 0a ba 2d | ac 6e 56 c0 4a 00 67 12 |.GN....-|.nV.J.g.|
|00000080| 55 4f 0f 41 62 6f 75 74 | 20 43 6f 6d 70 69 6c 65 |UO.About| Compile|
|00000090| 72 73 02 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |rs......|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 ac 28 52 d6 | 00 00 00 00 00 00 b3 fc |.....(R.|........|
|000000d0| 49 f0 00 00 0c ac 54 45 | 58 54 00 20 57 c0 0c ac |I.....TE|XT. W...|
|000000e0| 51 50 45 44 00 20 57 c1 | 80 01 67 06 19 7c 00 01 |QPED. W.|..g..|..|
|000000f0| 00 34 52 47 69 06 be 6e | fd ea 6f ca 4e ad 09 12 |.4RGi..n|..o.N...|
|00000100| 60 00 00 76 55 4f 3f 3c | 01 61 4e ad 05 42 4a 1f |`..vUO?<|.aN..BJ.|
|00000110| 67 66 4e ba fd 5a 60 60 | 55 4f 3f 3c 01 61 4e ad |gfN..Z``|UO?<.aN.|
|00000120| 05 42 4a 1f 67 52 1f 06 | 4e ba fb 52 60 4a 55 4f |.BJ.gR..|N..R`JUO|
|00000130| 3f 3c 01 59 4e ad 05 42 | 4a 1f 67 3c 1f 06 4e ba |?<.YN..B|J.g<..N.|
|00000140| fd 8c 60 34 53 40 0c 40 | 00 11 64 2c d0 40 30 3b |..`4S@.@|..d,.@0;|
|00000150| 00 06 00 00 00 12 00 00 | 0c 50 72 69 6e 74 65 72 |........|.Printer|
|00000160| 20 44 75 6d 70 00 00 00 | 00 00 00 00 00 00 00 04 | Dump...|........|
|00000170| 00 2c 05 f4 00 00 04 de | 00 00 00 02 20 2d f3 b2 |.,......|.... -..|
|00000180| 67 04 20 40 4e 90 20 2d | f5 08 67 04 20 40 4e 90 |g. @N. -|..g. @N.|
|00000190| a9 f4 4e ba 00 4e 2c 4d | 53 6d ff de 3b 7c 00 02 |..N..N,M|Sm..;|..|
|000001a0| ff dc 42 6d ff d6 42 ad | f3 b2 42 ad f3 b6 42 ad |..Bm..B.|..B...B.|
|000001b0| f3 ba 42 ad f3 be 42 6d | f3 ee 42 6d f3 f0 50 ed |..B...Bm|..Bm..P.|
|000001c0| f3 f2 50 ed f3 f3 51 ed | f3 f4 51 ed f3 f5 42 ad |..P...Q.|..Q...B.|
|000001d0| f5 08 30 3c 07 d0 4e ba | 00 98 20 50 2b 48 f3 ae |..0<..N.|.. P+H..|
|000001e0| 4e 75 59 8f 2f 3c 5a 45 | 52 4f 42 67 a9 a0 20 17 |NuY./<ZE|ROBg.. .|
|000001f0| 67 0e 42 67 2f 00 a9 a4 | 30 1f b0 78 09 00 67 04 |g.Bg/...|0..x..g.|
|00000200| 58 8f 4e 75 24 57 59 8f | 2f 3c 44 41 54 41 42 67 |X.Nu$WY.|/<DATABg|
|00000210| a9 a0 20 57 20 50 22 78 | 09 08 24 52 60 0e 32 d8 |.. W P"x|..$R`.2.|
|00000220| 66 0a 32 1a 60 02 42 59 | 51 c9 ff fc bb c9 66 ee |f.2.`.BY|Q.....f.|
|00000230| a9 a3 a9 a3 59 8f 2f 3c | 44 52 45 4c 42 67 a9 a0 |....Y./<|DRELBg..|
|00000240| 20 57 a0 25 20 50 e2 40 | 24 0d 60 06 32 18 d5 b5 | W.% P.@|$.`.2...|
|00000250| 10 00 51 c8 ff f8 a9 a3 | 4e 75 48 7a 00 10 3f 3c |..Q.....|NuHz..?<|
|00000260| 00 01 a9 eb 4e 75 48 7a | 00 06 60 f2 00 00 00 0d |....NuHz|..`.....|
|00000270| 59 8f 2f 3c 4c 53 50 20 | 3f 00 a9 a0 20 5f 20 08 |Y./<LSP |?... _ .|
|00000280| 4e 75 4e 75 22 5f 20 1f | 08 38 00 06 02 8e 66 06 |NuNu"_ .|.8....f.|
|00000290| a0 55 2e 80 4e d1 c0 b8 | 03 1a 2e 80 4e d1 4e 56 |.U..N...|....N.NV|
|000002a0| ff ec 48 e7 01 08 28 6e | 00 18 20 0c 66 02 4e 40 |..H...(n|.. .f.N@|
|000002b0| 59 4f 2f 3c 46 43 4d 44 | 3f 3c 03 e8 a9 a0 20 5f |YO/<FCMD|?<.... _|
|000002c0| 20 08 66 02 4e 40 28 90 | 20 2e 00 14 81 fc 00 01 | .f.N@(.| .......|
|000002d0| 4e 76 39 40 00 04 20 2e | 00 10 81 fc 00 01 4e 76 |Nv9@.. .|......Nv|
|000002e0| 39 40 00 06 42 6c 00 08 | 20 2e 00 0c 81 fc 00 01 |9@..Bl..| .......|
|000002f0| 4e 76 39 40 00 0a 29 6e | 00 08 00 0c 4a 6d fe 5e |Nv9@..)n|....Jm.^|
|00000300| 6f 00 00 a2 30 2d fe 5e | 53 40 4e 76 3d 40 ff ec |o...0-.^|S@Nv=@..|
|00000310| 42 47 60 00 00 88 30 07 | e5 40 4e 76 52 40 4e 76 |BG`...0.|.@NvR@Nv|
|00000320| 32 00 53 41 43 bc 00 27 | e5 40 32 2c 00 04 48 c1 |2.SAC..'|.@2,..H.|
|00000330| 06 40 fe 5c b2 b5 00 00 | 66 5e 30 07 e5 40 4e 76 |.@.\....|f^0..@Nv|
|00000340| 54 40 4e 76 32 00 53 41 | 43 bc 00 27 e5 40 32 2c |T@Nv2.SA|C..'.@2,|
|00000350| 00 06 48 c1 06 40 fe 5c | b2 b5 00 00 66 3a 30 07 |..H..@.\|....f:0.|
|00000360| e5 40 4e 76 58 40 4e 76 | 32 00 53 41 43 bc 00 27 |.@NvX@Nv|2.SAC..'|
|00000370| e5 40 06 40 fe 5c 4a b5 | 00 00 67 1c 30 07 e5 40 |.@.@.\J.|..g.0..@|
|00000380| 4e 76 58 40 4e 76 32 00 | 53 41 43 bc 00 27 e5 40 |NvX@Nv2.|SAC..'.@|
|00000390| 06 40 fe 5c 28 b5 00 00 | 52 47 69 08 be 6e ff ec |.@.\(...|RGi..n..|
|000003a0| 6f 00 ff 74 4c df 10 80 | 4e 5e 20 5f 4f ef 00 14 |o..tL...|N^ _O...|
|000003b0| 4e d0 50 52 45 50 49 54 | 20 20 4e 56 ff ee 48 e7 |N.PREPIT| NV..H.|
|000003c0| 1f 08 28 6e 00 1c 2e 2e | 00 18 2a 2e 00 10 28 2e |..(n....|..*...(.|
|000003d0| 00 08 26 2e 00 14 70 c3 | be 80 66 00 01 14 70 ff |..&...p.|..f...p.|
|000003e0| b0 ae 00 0c 5d c0 2f 00 | 55 4f 48 6e 00 0c 70 1f |....]./.|UOHn..p.|
|000003f0| 2f 00 a8 5d 12 1f 20 1f | 53 01 c0 01 67 1c 3f 3c |/..].. .|S...g.?<|
|00000400| 00 3e 42 67 20 1f a0 32 | 48 6d ff ca a8 6e a8 fe |.>Bg ..2|Hm...n..|
|00000410| a9 12 a9 30 a9 cc 42 a7 | a9 7b 59 4f 2f 3c 46 43 |...0..B.|.{YO/<FC|
|00000420| 4d 44 3f 3c 03 e8 a9 a0 | 4a 9f 66 1e 55 4f 59 4f |MD?<....|J.f.UOYO|
|00000430| 48 6d fa 5a 4e ba fe 4e | 20 5f 20 08 66 02 4e 40 |Hm.ZN..N| _ .f.N@|
|00000440| 2f 08 a9 97 4a 5f 6c 02 | a9 f4 2b 43 f5 32 20 04 |/...J_l.|..+C.2 .|
|00000450| 81 fc 00 01 4e 76 3b 40 | fe 5e 41 ed f5 0c 28 48 |....Nv;@|.^A...(H|
|00000460| 70 ff ba 80 6f 16 2f 0c | 2f 05 42 a7 42 a7 2f 0c |p...o./.|/.B.B./.|
|00000470| 4e ba fe 2c 2f 0c 22 57 | 20 51 4e 90 2f 0c 2f 3c |N..,/."W| QN././<|
|00000480| 00 00 04 4c 70 14 2f 00 | 42 a7 2f 0c 4e ba fe 10 |...Lp./.|B./.N...|
|00000490| 48 6d f7 34 2f 3c 00 00 | 04 6a 70 0a 2f 00 42 a7 |Hm.4/<..|.jp./.B.|
|000004a0| 2f 0c 4e ba fd fa 48 6d | f8 f6 2f 3c 00 00 04 56 |/.N...Hm|../<...V|
|000004b0| 70 14 2f 00 42 a7 2f 0c | 4e ba fd e4 48 6d fb 6e |p./.B./.|N...Hm.n|
|000004c0| 2f 3c 00 00 04 b0 70 14 | 2f 00 42 a7 2f 0c 4e ba |/<....p.|/.B./.N.|
|000004d0| fd ce 20 2e 00 0c 81 fc | 00 01 4e 76 3b 40 f5 16 |.. .....|..Nv;@..|
|000004e0| 42 6d f9 00 99 cc 70 fd | b0 ae 00 0c 6e 00 00 ee |Bm....p.|....n...|
|000004f0| 70 c2 be 80 66 16 2f 03 | 2f 05 2f 2e 00 0c 2f 04 |p...f./.|/./.../.|
|00000500| 48 6d f5 0c 4e ba fd 98 | 60 00 00 d2 4a 87 5d c0 |Hm..N...|`...J.].|
|00000510| 72 f5 be 81 5e c1 c0 01 | 67 72 7c ff 9c 87 4e 76 |r...^...|gr|...Nv|
|00000520| e5 86 8d fc 00 01 4e 76 | 30 06 52 40 4e 76 32 00 |......Nv|0.R@Nv2.|
|00000530| 53 41 43 bc 00 27 e5 40 | 06 40 fe 5c 2b 83 00 00 |SAC..'.@|.@.\+...|
|00000540| 30 06 54 40 4e 76 32 00 | 53 41 43 bc 00 27 e5 40 |0.T@Nv2.|SAC..'.@|
|00000550| 06 40 fe 5c 2b 85 00 00 | 30 06 56 40 4e 76 32 00 |.@.\+...|0.V@Nv2.|
|00000560| 53 41 43 bc 00 27 e5 40 | 06 40 fe 5c 2b ae 00 0c |SAC..'.@|.@.\+...|
|00000570| 00 00 30 06 58 40 4e 76 | 32 00 53 41 43 bc 00 27 |..0.X@Nv|2.SAC..'|
|00000580| e5 40 06 40 fe 5c 2b 84 | 00 00 60 50 20 0c 66 08 |.@.@.\+.|..`P .f.|
|00000590| 41 ed f8 f6 28 48 60 1c | 20 0c 66 02 4e 40 20 2c |A...(H`.| .f.N@ ,|
|000005a0| 00 0c 41 ed f5 0c b0 88 | 67 0a 2b 4c fb b2 41 ed |..A.....|g.+L..A.|
|000005b0| fb 6e 28 48 20 0c 66 02 | 4e 40 42 6c 00 08 2b 47 |.n(H .f.|N@Bl..+G|
|000005c0| f9 3a 2b 43 f9 3e 2b 45 | f9 42 2b 6e 00 0c f9 46 |.:+C.>+E|.B+n...F|
|000005d0| 2b 44 f9 4a 2f 0c 22 57 | 20 51 4e 90 4c df 10 f8 |+D.J/."W| QN.L...|
|000005e0| 4e 5e 20 5f 4f ef 00 18 | 4e d0 46 41 43 45 49 54 |N^ _O...|N.FACEIT|
|000005f0| 20 20 4e ba fb 9e 4e ba | fc 8a 4e ba fc 6a 4e 56 | N...N.|..N..jNV|
|00000600| 00 00 41 fa 00 44 43 ed | fa 5a 22 d8 22 d8 22 d8 |..A..DC.|.Z".".".|
|00000610| 22 d8 42 a7 70 c3 2f 00 | 42 a7 42 a7 42 a7 42 a7 |".B.p./.|B.B.B.B.|
|00000620| 4e ba fd 98 42 a7 42 a7 | 42 a7 42 a7 42 a7 42 a7 |N...B.B.|B.B.B.B.|
|00000630| 4e ba fd 88 60 ee 4e 5e | 4e ba fb 42 4e 5e 4e 75 |N...`.N^|N..BN^Nu|
|00000640| 41 42 4f 55 54 43 53 20 | 0d 41 62 6f 75 74 20 43 |ABOUTCS |.About C|
|00000650| 53 2e 52 73 72 63 00 00 | 00 20 00 00 00 30 00 00 |S.Rsrc..|. ...0..|
|00000660| 0c 52 00 00 00 10 00 00 | 00 20 04 76 3f 3c 00 01 |.R......|. .v?<..|
|00000670| a9 f0 04 76 3f 3c 00 01 | a9 f0 00 00 00 12 00 00 |...v?<..|........|
|00000680| 40 00 00 08 00 00 00 04 | 00 09 13 88 00 00 00 00 |@.......|........|
|00000690| 00 00 02 20 50 6f 69 6e | 74 65 72 73 0d 20 20 54 |... Poin|ters. T|
|000006a0| 6f 6f 6c 62 6f 78 20 61 | 6e 64 20 46 61 63 65 57 |oolbox a|nd FaceW|
|000006b0| 61 72 65 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |are prog|ramming |
|000006c0| 6f 66 74 65 6e 20 72 65 | 71 75 69 72 65 73 20 79 |often re|quires y|
|000006d0| 6f 75 20 74 6f 20 66 69 | 6e 64 20 6d 65 6d 6f 72 |ou to fi|nd memor|
|000006e0| 79 20 61 64 64 72 65 73 | 73 65 73 20 28 70 6f 69 |y addres|ses (poi|
|000006f0| 6e 74 65 72 73 29 20 6f | 66 20 72 65 63 6f 72 64 |nters) o|f record|
|00000700| 73 2c 20 61 72 72 61 79 | 73 2c 20 6f 72 20 6e 75 |s, array|s, or nu|
|00000710| 6d 62 65 72 73 2e 20 20 | 54 68 65 20 66 6f 6c 6c |mbers. |The foll|
|00000720| 6f 77 69 6e 67 20 74 61 | 62 6c 65 20 70 72 65 73 |owing ta|ble pres|
|00000730| 65 6e 74 73 20 74 68 65 | 20 65 78 70 72 65 73 73 |ents the| express|
|00000740| 69 6f 6e 73 20 73 75 70 | 70 6f 72 74 65 64 20 62 |ions sup|ported b|
|00000750| 79 20 65 61 63 68 20 63 | 6f 6d 70 69 6c 65 72 20 |y each c|ompiler |
|00000760| 74 68 61 74 20 77 6f 75 | 6c 64 20 72 65 74 75 72 |that wou|ld retur|
|00000770| 6e 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |n the ad|dress of|
|00000780| 20 74 68 65 20 22 74 68 | 69 6e 67 22 2e 20 20 54 | the "th|ing". T|
|00000790| 68 65 20 22 74 68 69 6e | 67 22 20 6d 69 67 68 74 |he "thin|g" might|
|000007a0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 62 |, for ex|ample, b|
|000007b0| 65 20 61 20 6d 6f 64 75 | 6c 65 27 73 20 73 68 61 |e a modu|le's sha|
|000007c0| 72 65 64 20 72 65 63 6f | 72 64 2e 0d 0d 20 63 6f |red reco|rd... co|
|000007d0| 6d 70 69 6c 65 72 20 20 | 20 6d 65 6d 6f 72 79 20 |mpiler | memory |
|000007e0| 61 64 64 72 65 73 73 20 | 6f 66 20 74 68 65 20 d2 |address |of the .|
|000007f0| 74 68 69 6e 67 d3 0d 20 | 4c 43 2c 20 57 43 20 20 |thing.. |LC, WC |
|00000800| 20 20 20 26 74 68 69 6e | 67 09 09 2e 2e 2e 69 66 | &thin|g.....if|
|00000810| 20 6e 6f 6e 2d 61 72 72 | 61 79 20 6f 72 20 61 6e | non-arr|ay or an|
|00000820| 20 61 72 72 61 79 20 65 | 6c 65 6d 65 6e 74 0d 20 | array e|lement. |
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 74 68 69 6e 67 | | thing|
|00000840| 09 09 09 2e 2e 2e 69 66 | 20 61 6e 20 61 72 72 61 |......if| an arra|
|00000850| 79 0d 20 41 46 2c 20 4c | 46 20 20 20 20 20 25 4c |y. AF, L|F %L|
|00000860| 4f 43 28 74 68 69 6e 67 | 29 0d 20 4d 46 20 20 20 |OC(thing|). MF |
|00000870| 20 20 20 20 20 20 74 6f | 6f 6c 62 78 28 50 54 52 | to|olbx(PTR|
|00000880| 2c 74 68 69 6e 67 29 09 | 09 2e 2e 2e 61 20 70 73 |,thing).|....a ps|
|00000890| 65 75 64 6f 2d 74 6f 6f | 6c 62 6f 78 20 63 61 6c |eudo-too|lbox cal|
|000008a0| 6c 0d 20 4c 50 2c 20 57 | 50 20 20 20 20 20 40 74 |l. LP, W|P @t|
|000008b0| 68 69 6e 67 00 00 1d ba | 53 74 72 69 6e 67 73 0d |hing....|Strings.|
|000008c0| 20 20 53 74 72 69 6e 67 | 20 54 79 70 65 73 20 20 | String| Types |
|000008d0| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 64 69 |The foll|owing di|
|000008e0| 73 63 75 73 73 69 6f 6e | 20 64 6f 65 73 20 6e 6f |scussion| does no|
|000008f0| 74 20 72 65 6c 69 67 69 | 6f 75 73 6c 79 20 66 6f |t religi|ously fo|
|00000900| 6c 6c 6f 77 20 65 61 63 | 68 20 6c 61 6e 67 75 61 |llow eac|h langua|
|00000910| 67 65 73 20 70 65 63 75 | 6c 69 61 72 20 75 73 65 |ges pecu|liar use|
|00000920| 20 6f 66 20 74 68 65 20 | 74 65 72 6d 73 20 22 73 | of the |terms "s|
|00000930| 74 72 69 6e 67 22 2c 20 | 22 63 68 61 72 61 63 74 |tring", |"charact|
|00000940| 65 72 22 2c 20 22 61 72 | 72 61 79 20 6f 66 20 63 |er", "ar|ray of c|
|00000950| 68 61 72 61 63 74 65 72 | 73 22 2c 20 65 74 63 2e |haracter|s", etc.|
|00000960| 20 20 54 68 65 20 74 65 | 72 6d 20 22 73 74 72 69 | The te|rm "stri|
|00000970| 6e 67 22 20 69 73 20 73 | 69 6d 70 6c 79 20 75 73 |ng" is s|imply us|
|00000980| 65 64 20 74 6f 20 64 65 | 6e 6f 74 65 20 77 68 61 |ed to de|note wha|
|00000990| 74 65 76 65 72 20 64 61 | 74 61 20 74 79 70 65 20 |tever da|ta type |
|000009a0| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 74 |correspo|nds to t|
|000009b0| 68 65 20 70 72 69 6d 61 | 72 79 20 6f 6e 65 20 75 |he prima|ry one u|
|000009c0| 73 65 64 20 62 79 20 61 | 20 6c 61 6e 67 75 61 67 |sed by a| languag|
|000009d0| 65 20 74 6f 20 6d 61 6e | 69 70 75 6c 61 74 65 20 |e to man|ipulate |
|000009e0| 62 6c 6f 63 6b 73 20 6f | 66 20 41 53 43 49 49 20 |blocks o|f ASCII |
|000009f0| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 54 68 65 |characte|rs. The|
|00000a00| 20 74 68 72 65 65 20 6d | 6f 73 74 20 63 6f 6d 6d | three m|ost comm|
|00000a10| 6f 6e 20 74 79 70 65 73 | 20 6f 66 20 73 74 72 69 |on types| of stri|
|00000a20| 6e 67 73 20 65 6e 63 6f | 75 6e 74 65 72 65 64 20 |ngs enco|untered |
|00000a30| 77 68 65 6e 20 77 6f 72 | 6b 69 6e 67 20 77 69 74 |when wor|king wit|
|00000a40| 68 20 46 61 63 65 57 61 | 72 65 20 6d 6f 64 75 6c |h FaceWa|re modul|
|00000a50| 65 73 20 63 6f 72 72 65 | 73 70 6f 6e 64 20 74 6f |es corre|spond to|
|00000a60| 20 74 68 65 20 33 20 6d | 61 6a 6f 72 20 6c 61 6e | the 3 m|ajor lan|
|00000a70| 67 75 61 67 65 73 3a 0d | 20 31 2e 20 20 43 3a 20 |guages:.| 1. C: |
|00000a80| 20 63 68 61 72 61 63 74 | 65 72 20 61 72 72 61 79 | charact|er array|
|00000a90| 20 6f 66 20 61 6e 79 20 | 6c 65 6e 67 74 68 20 74 | of any |length t|
|00000aa0| 65 72 6d 69 6e 61 74 65 | 64 20 62 79 20 61 20 6e |erminate|d by a n|
|00000ab0| 75 6c 6c 20 62 79 74 65 | 0d 20 32 2e 20 20 46 6f |ull byte|. 2. Fo|
|00000ac0| 72 74 72 61 6e 3a 20 20 | 63 68 61 72 61 63 74 65 |rtran: |characte|
|00000ad0| 72 20 61 72 72 61 79 20 | 74 65 72 6d 69 6e 61 74 |r array |terminat|
|00000ae0| 65 64 20 62 79 20 73 70 | 61 63 65 73 20 28 73 70 |ed by sp|aces (sp|
|00000af0| 61 63 65 2d 70 61 64 64 | 65 64 29 0d 20 33 2e 20 |ace-padd|ed). 3. |
|00000b00| 20 50 61 73 63 61 6c 3a | 20 20 b2 20 32 35 35 2d | Pascal:| . 255-|
|00000b10| 63 68 61 72 61 63 74 65 | 72 20 61 72 72 61 79 20 |characte|r array |
|00000b20| 70 72 65 63 65 65 64 65 | 64 20 62 79 20 61 20 6c |preceede|d by a l|
|00000b30| 65 61 64 69 6e 67 20 6c | 65 6e 67 74 68 20 62 79 |eading l|ength by|
|00000b40| 74 65 0d 4d 61 63 69 6e | 74 6f 73 68 20 63 6f 6d |te.Macin|tosh com|
|00000b50| 70 69 6c 65 72 73 20 6f | 66 74 65 6e 20 73 75 70 |pilers o|ften sup|
|00000b60| 70 6f 72 74 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f |port mor|e than o|
|00000b70| 6e 65 20 6f 66 20 74 68 | 65 20 61 62 6f 76 65 20 |ne of th|e above |
|00000b80| 74 79 70 65 73 20 6f 66 | 20 73 74 72 69 6e 67 73 |types of| strings|
|00000b90| 2e 20 20 54 68 65 79 20 | 77 69 6c 6c 20 61 6c 73 |. They |will als|
|00000ba0| 6f 20 6f 66 74 65 6e 20 | 70 72 6f 76 69 64 65 20 |o often |provide |
|00000bb0| 73 74 72 69 6e 67 2d 63 | 6f 6e 76 65 72 73 69 6f |string-c|onversio|
|00000bc0| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 20 74 68 61 74 |n functi|ons that|
|00000bd0| 20 63 6f 6e 76 65 72 74 | 20 6f 6e 65 20 74 79 70 | convert| one typ|
|00000be0| 65 20 74 6f 20 61 6e 6f | 74 68 65 72 2e 20 20 54 |e to ano|ther. T|
|00000bf0| 68 65 20 55 74 69 6c 49 | 74 20 6d 6f 64 75 6c 65 |he UtilI|t module|
|00000c00| 20 61 6c 73 6f 20 73 75 | 70 70 6f 72 74 73 20 61 | also su|pports a|
|00000c10| 20 43 6e 76 53 74 72 20 | 63 6f 6d 6d 61 6e 64 20 | CnvStr |command |
|00000c20| 74 68 61 74 20 63 61 6e | 20 62 65 20 75 73 65 64 |that can| be used|
|00000c30| 20 74 6f 20 69 6e 74 65 | 72 63 6f 6e 76 65 72 74 | to inte|rconvert|
|00000c40| 20 61 6e 79 20 6f 66 20 | 74 68 65 20 61 62 6f 76 | any of |the abov|
|00000c50| 65 20 74 79 70 65 73 2e | 20 20 57 69 74 68 20 72 |e types.| With r|
|00000c60| 65 73 70 65 63 74 20 74 | 6f 20 73 74 72 69 6e 67 |espect t|o string|
|00000c70| 73 20 69 6e 20 73 68 61 | 72 65 64 20 72 65 63 6f |s in sha|red reco|
|00000c80| 72 64 73 2c 20 61 20 6d | 6f 64 75 6c 65 20 77 69 |rds, a m|odule wi|
|00000c90| 6c 6c 20 65 69 74 68 65 | 72 20 66 6f 72 63 65 20 |ll eithe|r force |
|00000ca0| 79 6f 75 20 74 6f 20 75 | 73 65 20 61 20 70 61 72 |you to u|se a par|
|00000cb0| 74 69 63 75 6c 61 72 20 | 74 79 70 65 20 6f 66 20 |ticular |type of |
|00000cc0| 73 74 72 69 6e 67 2c 20 | 6f 72 20 77 69 6c 6c 20 |string, |or will |
|00000cd0| 61 6c 6c 6f 77 20 79 6f | 75 20 74 6f 20 75 73 65 |allow yo|u to use|
|00000ce0| 20 79 6f 75 72 20 6c 61 | 6e 67 75 61 67 65 27 73 | your la|nguage's|
|00000cf0| 20 6e 61 74 69 76 65 20 | 73 74 72 69 6e 67 20 74 | native |string t|
|00000d00| 79 70 65 20 61 6e 64 20 | 64 6f 20 74 68 65 20 63 |ype and |do the c|
|00000d10| 6f 6e 76 65 72 73 69 6f | 6e 73 20 69 74 73 65 6c |onversio|ns itsel|
|00000d20| 66 2e 0d 20 20 45 61 63 | 68 20 73 74 72 69 6e 67 |f.. Eac|h string|
|00000d30| 20 74 79 70 65 20 68 61 | 73 20 69 74 73 20 61 64 | type ha|s its ad|
|00000d40| 76 61 6e 74 61 67 65 73 | 20 61 6e 64 20 64 69 73 |vantages| and dis|
|00000d50| 61 64 76 61 6e 74 61 67 | 65 73 2e 20 20 49 6e 20 |advantag|es. In |
|00000d60| 6d 6f 73 74 20 63 61 73 | 65 73 2c 20 74 68 65 20 |most cas|es, the |
|00000d70| 64 69 73 61 64 76 61 6e | 74 61 67 65 73 20 6f 66 |disadvan|tages of|
|00000d80| 20 65 61 63 68 20 74 79 | 70 65 20 61 72 65 20 62 | each ty|pe are b|
|00000d90| 61 6c 61 6e 63 65 64 20 | 62 79 20 62 75 69 6c 74 |alanced |by built|
|00000da0| 2d 69 6e 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |-in func|tions th|
|00000db0| 61 74 20 64 6f 20 74 68 | 65 20 64 69 72 74 79 20 |at do th|e dirty |
|00000dc0| 77 6f 72 6b 20 66 6f 72 | 20 79 6f 75 3a 20 20 66 |work for| you: f|
|00000dd0| 69 6e 64 69 6e 67 20 74 | 68 65 20 6c 65 6e 67 74 |inding t|he lengt|
|00000de0| 68 2c 20 69 6e 73 65 72 | 74 69 6e 67 20 61 20 73 |h, inser|ting a s|
|00000df0| 75 62 73 74 72 69 6e 67 | 2c 20 65 74 63 2e 0d 20 |ubstring|, etc.. |
|00000e00| 20 46 6f 72 74 72 61 6e | 20 73 74 72 69 6e 67 73 | Fortran| strings|
|00000e10| 20 68 61 76 65 20 74 68 | 65 20 61 64 76 61 6e 74 | have th|e advant|
|00000e20| 61 67 65 20 6f 66 20 68 | 61 76 69 6e 67 20 6e 6f |age of h|aving no|
|00000e30| 20 22 75 6e 64 65 66 69 | 6e 65 64 22 20 63 68 61 | "undefi|ned" cha|
|00000e40| 72 61 63 74 65 72 73 20 | 73 69 6e 63 65 20 73 70 |racters |since sp|
|00000e50| 61 63 65 73 20 61 72 65 | 20 75 73 65 64 20 74 6f |aces are| used to|
|00000e60| 20 70 61 64 20 74 68 65 | 20 65 6e 64 20 6f 66 20 | pad the| end of |
|00000e70| 73 74 72 69 6e 67 73 2e | 20 20 54 68 69 73 20 6d |strings.| This m|
|00000e80| 61 6b 65 73 20 69 74 20 | 65 61 73 79 20 74 6f 20 |akes it |easy to |
|00000e90| 6d 61 6e 69 70 75 6c 61 | 74 65 20 73 75 62 73 74 |manipula|te subst|
|00000ea0| 72 69 6e 67 73 20 77 69 | 74 68 69 6e 20 46 6f 72 |rings wi|thin For|
|00000eb0| 74 72 61 6e 20 73 74 72 | 69 6e 67 73 20 73 69 6e |tran str|ings sin|
|00000ec0| 63 65 20 79 6f 75 20 6e | 65 76 65 72 20 68 61 76 |ce you n|ever hav|
|00000ed0| 65 20 74 6f 20 77 6f 72 | 72 79 20 61 62 6f 75 74 |e to wor|ry about|
|00000ee0| 20 77 68 65 72 65 20 74 | 68 65 20 65 6e 64 20 6f | where t|he end o|
|00000ef0| 66 20 74 68 65 20 73 74 | 72 69 6e 67 20 69 73 2e |f the st|ring is.|
|00000f00| 20 20 4f 6e 20 74 68 65 | 20 6e 65 67 61 74 69 76 | On the| negativ|
|00000f10| 65 20 73 69 64 65 2c 20 | 73 70 61 63 65 73 20 61 |e side, |spaces a|
|00000f20| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 20 73 |t the en|d of a s|
|00000f30| 74 72 69 6e 67 20 61 72 | 65 20 6e 65 76 65 72 20 |tring ar|e never |
|00000f40| 73 69 67 6e 69 66 69 63 | 61 6e 74 2c 20 61 6e 64 |signific|ant, and|
|00000f50| 20 61 20 73 65 61 72 63 | 68 20 6d 75 73 74 20 62 | a searc|h must b|
|00000f60| 65 20 6d 61 64 65 20 74 | 6f 20 64 65 74 65 72 6d |e made t|o determ|
|00000f70| 69 6e 65 20 73 74 72 69 | 6e 67 20 6c 65 6e 67 74 |ine stri|ng lengt|
|00000f80| 68 2e 0d 20 20 43 20 73 | 74 72 69 6e 67 73 20 61 |h.. C s|trings a|
|00000f90| 6c 73 6f 20 73 75 66 66 | 65 72 20 66 72 6f 6d 20 |lso suff|er from |
|00000fa0| 74 68 65 72 65 20 62 65 | 69 6e 67 20 6e 6f 20 73 |there be|ing no s|
|00000fb0| 69 6d 70 6c 65 20 77 61 | 79 20 74 6f 20 64 65 74 |imple wa|y to det|
|00000fc0| 65 72 6d 69 6e 65 20 74 | 68 65 69 72 20 73 69 7a |ermine t|heir siz|
|00000fd0| 65 20 77 69 74 68 6f 75 | 74 20 73 65 61 72 63 68 |e withou|t search|
|00000fe0| 69 6e 67 20 66 6f 72 20 | 74 68 65 20 65 6e 64 20 |ing for |the end |
|00000ff0| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 20 28 61 |of the s|tring (a|
|00001000| 20 6e 75 6c 6c 20 62 79 | 74 65 29 2e 20 20 41 6e | null by|te). An|
|00001010| 6f 74 68 65 72 20 64 69 | 73 61 64 76 61 6e 74 61 |other di|sadvanta|
|00001020| 67 65 20 69 73 20 74 68 | 61 74 20 74 68 65 20 70 |ge is th|at the p|
|00001030| 6f 73 69 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 6e |osition |of the n|
|00001040| 75 6c 6c 20 62 79 74 65 | 20 6d 75 73 74 20 62 65 |ull byte| must be|
|00001050| 20 6d 61 6e 61 67 65 64 | 20 77 68 65 6e 20 63 68 | managed| when ch|
|00001060| 61 6e 67 69 6e 67 20 74 | 68 65 20 73 69 7a 65 20 |anging t|he size |
|00001070| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 2e 20 20 |of the s|tring. |
|00001080| 4f 6e 20 74 68 65 20 70 | 6c 75 73 20 73 69 64 65 |On the p|lus side|
|00001090| 2c 20 61 6e 79 20 6e 6f | 6e 2d 6e 75 6c 6c 20 63 |, any no|n-null c|
|000010a0| 68 61 72 61 63 74 65 72 | 20 63 61 6e 20 62 65 20 |haracter| can be |
|000010b0| 75 73 65 64 20 69 6e 20 | 74 68 65 20 73 74 72 69 |used in |the stri|
|000010c0| 6e 67 2c 20 61 6e 64 20 | 43 20 73 74 72 69 6e 67 |ng, and |C string|
|000010d0| 73 20 61 72 65 20 6e 6f | 74 20 6c 69 6d 69 74 65 |s are no|t limite|
|000010e0| 64 20 69 6e 20 73 69 7a | 65 2e 0d 20 20 50 61 73 |d in siz|e.. Pas|
|000010f0| 63 61 6c 20 73 74 72 69 | 6e 67 73 20 68 61 76 65 |cal stri|ngs have|
|00001100| 20 61 20 6c 65 61 64 69 | 6e 67 20 6c 65 6e 67 74 | a leadi|ng lengt|
|00001110| 68 20 62 79 74 65 20 77 | 68 69 63 68 20 73 6f 6c |h byte w|hich sol|
|00001120| 76 65 73 20 74 68 65 20 | 70 72 6f 62 6c 65 6d 20 |ves the |problem |
|00001130| 6f 66 20 71 75 69 63 6b | 6c 79 20 64 65 74 65 72 |of quick|ly deter|
|00001140| 6d 69 6e 69 6e 67 20 74 | 68 65 20 6c 65 6e 67 74 |mining t|he lengt|
|00001150| 68 20 6f 66 20 61 20 73 | 74 72 69 6e 67 2e 20 20 |h of a s|tring. |
|00001160| 54 68 65 20 6c 65 6e 67 | 74 68 20 62 79 74 65 20 |The leng|th byte |
|00001170| 61 6c 73 6f 20 73 75 70 | 70 6f 72 74 73 20 70 61 |also sup|ports pa|
|00001180| 63 6b 69 6e 67 20 50 61 | 73 63 61 6c 20 73 74 72 |cking Pa|scal str|
|00001190| 69 6e 67 73 20 74 6f 67 | 65 74 68 65 72 20 69 6e |ings tog|ether in|
|000011a0| 74 6f 20 6c 69 73 74 73 | 2c 20 70 72 6f 76 69 64 |to lists|, provid|
|000011b0| 69 6e 67 20 61 20 76 65 | 72 79 20 65 66 66 69 63 |ing a ve|ry effic|
|000011c0| 69 65 6e 74 20 77 61 79 | 20 74 6f 20 73 74 6f 72 |ient way| to stor|
|000011d0| 65 20 73 74 72 69 6e 67 | 73 2e 20 20 4f 6e 20 74 |e string|s. On t|
|000011e0| 68 65 20 64 6f 77 6e 20 | 73 69 64 65 2c 20 74 68 |he down |side, th|
|000011f0| 65 20 6c 65 6e 67 74 68 | 20 62 79 74 65 20 28 6c |e length| byte (l|
|00001200| 69 6b 65 20 43 27 73 20 | 6e 75 6c 6c 20 62 79 74 |ike C's |null byt|
|00001210| 65 29 20 6d 75 73 74 20 | 62 65 20 61 64 6a 75 73 |e) must |be adjus|
|00001220| 74 65 64 20 65 61 63 68 | 20 74 69 6d 65 20 74 68 |ted each| time th|
|00001230| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 73 74 |e size o|f the st|
|00001240| 72 69 6e 67 20 69 73 20 | 63 68 61 6e 67 65 64 2c |ring is |changed,|
|00001250| 20 61 6e 64 20 6c 69 6d | 69 74 73 20 74 68 65 20 | and lim|its the |
|00001260| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 73 74 72 69 |size of |the stri|
|00001270| 6e 67 20 74 6f 20 32 35 | 35 20 63 68 61 72 61 63 |ng to 25|5 charac|
|00001280| 74 65 72 73 2e 0d 0d 53 | 74 72 69 6e 67 2d 54 6f |ters...S|tring-To|
|00001290| 2d 4e 75 6d 62 65 72 20 | 49 6e 74 65 72 63 6f 6e |-Number |Intercon|
|000012a0| 76 65 72 73 69 6f 6e 20 | 20 4d 6f 73 74 20 61 70 |version | Most ap|
|000012b0| 70 6c 69 63 61 74 69 6f | 6e 73 20 74 68 61 74 20 |plicatio|ns that |
|000012c0| 77 6f 72 6b 20 77 69 74 | 68 20 6e 75 6d 62 65 72 |work wit|h number|
|000012d0| 73 20 77 69 6c 6c 20 62 | 65 63 6f 6d 65 20 69 6e |s will b|ecome in|
|000012e0| 76 6f 6c 76 65 64 20 77 | 69 74 68 20 69 6e 74 65 |volved w|ith inte|
|000012f0| 72 63 6f 6e 76 65 72 74 | 69 6e 67 20 6e 75 6d 62 |rconvert|ing numb|
|00001300| 65 72 73 20 61 6e 64 20 | 73 74 72 69 6e 67 73 2e |ers and |strings.|
|00001310| 20 20 54 6f 6f 6c 62 6f | 78 2c 20 53 41 4e 45 2c | Toolbo|x, SANE,|
|00001320| 20 61 6e 64 20 55 74 69 | 6c 49 74 20 72 6f 75 74 | and Uti|lIt rout|
|00001330| 69 6e 65 73 20 61 72 65 | 20 61 76 61 69 6c 61 62 |ines are| availab|
|00001340| 6c 65 20 74 6f 20 61 6c | 6c 20 4d 61 63 20 70 72 |le to al|l Mac pr|
|00001350| 6f 67 72 61 6d 6d 65 72 | 73 20 74 6f 20 69 6e 74 |ogrammer|s to int|
|00001360| 65 72 63 6f 6e 76 65 72 | 74 20 6e 75 6d 62 65 72 |erconver|t number|
|00001370| 73 20 61 6e 64 20 73 74 | 72 69 6e 67 73 3a 20 20 |s and st|rings: |
|00001380| 53 74 72 69 6e 67 54 6f | 4e 75 6d 20 61 6e 64 20 |StringTo|Num and |
|00001390| 4e 75 6d 54 6f 53 74 72 | 69 6e 67 20 66 6f 72 20 |NumToStr|ing for |
|000013a0| 69 6e 74 65 67 65 72 73 | 2c 20 73 74 72 32 6e 75 |integers|, str2nu|
|000013b0| 6d 20 61 6e 64 20 6e 75 | 6d 32 73 74 72 20 66 6f |m and nu|m2str fo|
|000013c0| 72 20 72 65 61 6c 73 2c | 20 61 6e 64 20 74 68 65 |r reals,| and the|
|000013d0| 20 63 6f 6d 6d 61 6e 64 | 73 20 4e 75 6d 54 6f 53 | command|s NumToS|
|000013e0| 20 61 6e 64 20 53 54 6f | 4e 75 6d 2e 20 20 45 61 | and STo|Num. Ea|
|000013f0| 63 68 20 6c 61 6e 67 75 | 61 67 65 20 61 6c 73 6f |ch langu|age also|
|00001400| 20 68 61 73 20 62 75 69 | 6c 74 2d 69 6e 20 73 75 | has bui|lt-in su|
|00001410| 70 70 6f 72 74 20 66 6f | 72 20 69 6e 74 65 72 63 |pport fo|r interc|
|00001420| 6f 6e 76 65 72 74 69 6e | 67 20 6e 75 6d 62 65 72 |onvertin|g number|
|00001430| 73 20 61 6e 64 20 73 74 | 72 69 6e 67 73 3a 0d 0d |s and st|rings:..|
|00001440| 46 6f 72 74 72 61 6e 20 | 20 46 6f 72 74 72 61 6e |Fortran | Fortran|
|00001450| 27 73 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 22 |'s suppo|rt for "|
|00001460| 69 6e 74 65 72 6e 61 6c | 20 66 69 6c 65 73 22 20 |internal| files" |
|00001470| 6d 61 6b 65 73 20 63 6f | 6e 76 65 72 73 69 6f 6e |makes co|nversion|
|00001480| 20 6f 66 20 6e 75 6d 62 | 65 72 73 20 74 6f 20 73 | of numb|ers to s|
|00001490| 74 72 69 6e 67 73 20 61 | 6c 6d 6f 73 74 20 74 72 |trings a|lmost tr|
|000014a0| 69 76 69 61 6c 2c 20 61 | 6e 64 20 62 72 69 6e 67 |ivial, a|nd bring|
|000014b0| 73 20 61 6c 6c 20 74 68 | 65 20 70 6f 77 65 72 20 |s all th|e power |
|000014c0| 6f 66 20 66 6f 72 6d 61 | 74 20 73 74 61 74 65 6d |of forma|t statem|
|000014d0| 65 6e 74 73 20 74 6f 20 | 74 68 69 73 20 6f 70 65 |ents to |this ope|
|000014e0| 72 61 74 69 6f 6e 2e 20 | 20 46 6f 72 20 65 78 61 |ration. | For exa|
|000014f0| 6d 70 6c 65 2c 20 73 75 | 70 70 6f 73 65 20 61 6e |mple, su|ppose an|
|00001500| 20 65 78 69 73 74 69 6e | 67 20 70 72 6f 67 72 61 | existin|g progra|
|00001510| 6d 20 77 72 69 74 65 73 | 20 74 77 6f 20 69 6e 74 |m writes| two int|
|00001520| 65 67 65 72 73 20 74 6f | 20 75 6e 69 74 20 33 3a |egers to| unit 3:|
|00001530| 0d 20 20 20 69 6e 74 65 | 67 65 72 20 61 6c 70 68 |. inte|ger alph|
|00001540| 61 2c 62 65 74 61 0d 20 | 20 20 2e 2e 2e 0d 20 20 |a,beta. | .... |
|00001550| 20 61 6c 70 68 61 20 3d | 20 35 0d 20 20 20 62 65 | alpha =| 5. be|
|00001560| 74 61 20 3d 20 31 30 0d | 20 20 20 77 72 69 74 65 |ta = 10.| write|
|00001570| 28 33 2c 35 29 20 61 6c | 70 68 61 2c 62 65 74 61 |(3,5) al|pha,beta|
|00001580| 0d 35 20 20 66 6f 72 6d | 61 74 20 28 32 49 35 29 |.5 form|at (2I5)|
|00001590| 0d 54 68 65 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |.The equ|ivalent |
|000015a0| 73 74 61 74 65 6d 65 6e | 74 73 20 66 6f 72 20 77 |statemen|ts for w|
|000015b0| 72 69 74 69 6e 67 20 74 | 68 65 20 73 61 6d 65 20 |riting t|he same |
|000015c0| 76 61 72 69 61 62 6c 65 | 73 20 74 6f 20 74 68 65 |variable|s to the|
|000015d0| 20 66 52 65 63 27 73 20 | 75 4e 61 6d 65 20 73 74 | fRec's |uName st|
|000015e0| 72 69 6e 67 20 28 72 65 | 66 65 72 72 65 64 20 74 |ring (re|ferred t|
|000015f0| 6f 20 61 73 20 61 6e 20 | 22 69 6e 74 65 72 6e 61 |o as an |"interna|
|00001600| 6c 20 66 69 6c 65 22 29 | 20 77 6f 75 6c 64 20 62 |l file")| would b|
|00001610| 65 2c 0d 20 20 20 77 72 | 69 74 65 28 75 4e 61 6d |e,. wr|ite(uNam|
|00001620| 65 2c 35 29 20 61 6c 70 | 68 61 2c 62 65 74 61 0d |e,5) alp|ha,beta.|
|00001630| 35 20 20 66 6f 72 6d 61 | 74 20 28 32 49 35 29 0d |5 forma|t (2I5).|
|00001640| 6f 72 20 73 69 6d 70 6c | 79 2c 0d 20 20 20 77 72 |or simpl|y,. wr|
|00001650| 69 74 65 28 75 4e 61 6d | 65 2c 27 28 32 49 35 29 |ite(uNam|e,'(2I5)|
|00001660| 27 29 20 61 6c 70 68 61 | 2c 62 65 74 61 0d 52 65 |') alpha|,beta.Re|
|00001670| 61 64 69 6e 67 20 61 20 | 46 6f 72 74 72 61 6e 20 |ading a |Fortran |
|00001680| 73 74 72 69 6e 67 20 69 | 73 20 76 65 72 79 20 73 |string i|s very s|
|00001690| 69 6d 69 6c 61 72 20 74 | 6f 20 77 72 69 74 69 6e |imilar t|o writin|
|000016a0| 67 20 61 20 73 74 72 69 | 6e 67 2e 20 20 54 68 65 |g a stri|ng. The|
|000016b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 64 65 20 | followi|ng code |
|000016c0| 72 65 61 64 73 20 74 68 | 65 20 76 61 72 69 61 62 |reads th|e variab|
|000016d0| 6c 65 73 20 61 6c 70 68 | 61 20 61 6e 64 20 62 65 |les alph|a and be|
|000016e0| 74 61 20 66 72 6f 6d 20 | 74 68 65 20 73 74 72 69 |ta from |the stri|
|000016f0| 6e 67 20 75 4e 61 6d 65 | 3a 0d 20 20 20 72 65 61 |ng uName|:. rea|
|00001700| 64 28 75 4e 61 6d 65 2c | 35 29 20 61 6c 70 68 61 |d(uName,|5) alpha|
|00001710| 2c 62 65 74 61 0d 35 20 | 20 66 6f 72 6d 61 74 20 |,beta.5 | format |
|00001720| 28 32 49 35 29 20 20 21 | 32 20 69 6e 74 2e 73 20 |(2I5) !|2 int.s |
|00001730| 6f 63 63 75 70 79 69 6e | 67 20 35 20 63 68 61 72 |occupyin|g 5 char|
|00001740| 61 63 74 65 72 73 20 65 | 61 63 68 0d 4f 6e 65 20 |acters e|ach.One |
|00001750| 64 72 61 77 62 61 63 6b | 20 74 6f 20 75 73 69 6e |drawback| to usin|
|00001760| 67 20 61 20 73 74 72 69 | 6e 67 20 61 73 20 61 6e |g a stri|ng as an|
|00001770| 20 69 6e 74 65 72 6e 61 | 6c 20 66 69 6c 65 20 69 | interna|l file i|
|00001780| 6e 20 61 20 72 65 61 64 | 20 73 74 61 74 65 6d 65 |n a read| stateme|
|00001790| 6e 74 20 69 73 20 74 68 | 61 74 2c 20 77 69 74 68 |nt is th|at, with|
|000017a0| 20 73 6f 6d 65 20 46 6f | 72 74 72 61 6e 20 63 6f | some Fo|rtran co|
|000017b0| 6d 70 69 6c 65 72 73 2c | 20 79 6f 75 20 63 61 6e |mpilers,| you can|
|000017c0| 6e 6f 74 20 75 73 65 20 | 6c 69 73 74 2d 64 69 72 |not use |list-dir|
|000017d0| 65 63 74 65 64 20 66 6f | 72 6d 61 74 73 20 28 22 |ected fo|rmats ("|
|000017e0| 2a 22 20 66 6f 72 6d 61 | 74 74 69 6e 67 29 20 77 |*" forma|tting) w|
|000017f0| 68 65 6e 20 72 65 61 64 | 69 6e 67 20 6d 6f 72 65 |hen read|ing more|
|00001800| 20 74 68 61 6e 20 6f 6e | 65 20 76 61 72 69 61 62 | than on|e variab|
|00001810| 6c 65 20 66 72 6f 6d 20 | 61 20 73 69 6e 67 6c 65 |le from |a single|
|00001820| 20 73 74 72 69 6e 67 2e | 20 20 54 68 65 72 65 20 | string.| There |
|00001830| 69 73 20 75 73 75 61 6c | 6c 79 20 6e 6f 20 70 72 |is usual|ly no pr|
|00001840| 6f 62 6c 65 6d 2c 20 68 | 6f 77 65 76 65 72 2c 20 |oblem, h|owever, |
|00001850| 75 73 69 6e 67 20 22 2a | 22 20 66 6f 72 6d 61 74 |using "*|" format|
|00001860| 74 69 6e 67 20 77 68 65 | 6e 20 77 72 69 74 69 6e |ting whe|n writin|
|00001870| 67 20 6d 75 6c 74 69 70 | 6c 65 20 76 61 6c 75 65 |g multip|le value|
|00001880| 73 20 74 6f 20 61 20 73 | 74 72 69 6e 67 2e 0d 0d |s to a s|tring...|
|00001890| 50 61 73 63 61 6c 20 20 | 54 68 65 20 54 48 49 4e |Pascal |The THIN|
|000018a0| 4b 20 50 61 73 63 61 6c | 20 66 75 6e 63 74 69 6f |K Pascal| functio|
|000018b0| 6e 73 20 22 53 74 72 69 | 6e 67 4f 66 22 20 61 6e |ns "Stri|ngOf" an|
|000018c0| 64 20 22 52 65 61 64 53 | 74 72 69 6e 67 22 20 70 |d "ReadS|tring" p|
|000018d0| 72 6f 76 69 64 65 20 6d | 6f 73 74 20 6f 66 20 74 |rovide m|ost of t|
|000018e0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 61 6c 69 74 79 |he funct|ionality|
|000018f0| 20 6f 66 20 74 68 65 20 | 65 71 75 69 76 61 6c 65 | of the |equivale|
|00001900| 6e 74 20 46 6f 72 74 72 | 61 6e 20 22 77 72 69 74 |nt Fortr|an "writ|
|00001910| 65 22 20 61 6e 64 20 22 | 72 65 61 64 22 2e 20 20 |e" and "|read". |
|00001920| 54 72 61 6e 73 6c 61 74 | 69 6e 67 20 66 72 6f 6d |Translat|ing from|
|00001930| 20 74 68 65 20 61 62 6f | 76 65 20 46 6f 72 74 72 | the abo|ve Fortr|
|00001940| 61 6e 20 65 78 61 6d 70 | 6c 65 73 2c 0d 20 20 61 |an examp|les,. a|
|00001950| 6c 70 68 61 2c 62 65 74 | 61 20 3a 20 6c 6f 6e 67 |lpha,bet|a : long|
|00001960| 69 6e 74 3b 0d 20 20 2e | 2e 2e 0d 20 20 61 6c 70 |int;. .|... alp|
|00001970| 68 61 20 3a 3d 20 35 3b | 0d 20 20 62 65 74 61 20 |ha := 5;|. beta |
|00001980| 3a 3d 20 31 30 3b 0d 20 | 20 75 4e 61 6d 65 20 3a |:= 10;. | uName :|
|00001990| 3d 20 53 74 72 69 6e 67 | 4f 66 28 61 6c 70 68 61 |= String|Of(alpha|
|000019a0| 3a 35 2c 62 65 74 61 3a | 35 29 3b 0d 4f 6e 65 20 |:5,beta:|5);.One |
|000019b0| 70 6f 74 65 6e 74 69 61 | 6c 20 70 72 6f 62 6c 65 |potentia|l proble|
|000019c0| 6d 20 75 73 69 6e 67 20 | 74 68 65 20 22 53 74 72 |m using |the "Str|
|000019d0| 69 6e 67 4f 66 22 20 66 | 75 6e 63 74 69 6f 6e 2c |ingOf" f|unction,|
|000019e0| 20 68 6f 77 65 76 65 72 | 2c 20 69 73 20 74 68 61 | however|, is tha|
|000019f0| 74 20 69 74 20 77 69 6c | 6c 20 75 73 65 20 6d 6f |t it wil|l use mo|
|00001a00| 72 65 20 63 68 61 72 61 | 63 74 65 72 73 20 74 68 |re chara|cters th|
|00001a10| 61 6e 20 74 68 65 20 64 | 65 73 69 67 6e 61 74 65 |an the d|esignate|
|00001a20| 64 20 66 69 65 6c 64 20 | 77 69 64 74 68 20 28 22 |d field |width ("|
|00001a30| 35 22 20 69 6e 20 74 68 | 65 20 61 62 6f 76 65 20 |5" in th|e above |
|00001a40| 65 78 61 6d 70 6c 65 29 | 20 69 66 20 69 74 20 66 |example)| if it f|
|00001a50| 69 6e 64 73 20 74 68 61 | 74 20 74 68 65 20 6f 75 |inds tha|t the ou|
|00001a60| 74 70 75 74 20 73 74 72 | 69 6e 67 20 69 73 20 6c |tput str|ing is l|
|00001a70| 61 72 67 65 72 20 74 68 | 61 6e 20 74 68 65 20 73 |arger th|an the s|
|00001a80| 70 61 63 65 20 67 69 76 | 65 6e 2e 20 20 53 6f 20 |pace giv|en. So |
|00001a90| 62 65 20 63 65 72 74 61 | 69 6e 20 74 6f 20 6d 61 |be certa|in to ma|
|00001aa0| 6b 65 20 79 6f 75 72 20 | 66 69 65 6c 64 2d 77 69 |ke your |field-wi|
|00001ab0| 64 74 68 73 20 6c 61 72 | 67 65 20 65 6e 6f 75 67 |dths lar|ge enoug|
|00001ac0| 68 2e 0d 20 20 52 65 61 | 64 69 6e 67 20 61 20 73 |h.. Rea|ding a s|
|00001ad0| 74 72 69 6e 67 20 77 69 | 74 68 20 22 52 65 61 64 |tring wi|th "Read|
|00001ae0| 53 74 72 69 6e 67 22 20 | 69 73 20 61 20 6c 6f 74 |String" |is a lot|
|00001af0| 20 6c 69 6b 65 20 61 20 | 6c 69 73 74 2d 64 69 72 | like a |list-dir|
|00001b00| 65 63 74 65 64 20 72 65 | 61 64 20 77 69 74 68 20 |ected re|ad with |
|00001b10| 46 6f 72 74 72 61 6e 2e | 20 20 55 6e 66 6f 72 74 |Fortran.| Unfort|
|00001b20| 75 6e 61 74 65 6c 79 2c | 20 79 6f 75 20 63 61 6e |unately,| you can|
|00001b30| 6e 6f 74 20 61 6c 77 61 | 79 73 20 67 75 61 72 61 |not alwa|ys guara|
|00001b40| 6e 74 65 65 20 74 68 61 | 74 20 74 68 65 20 76 61 |ntee tha|t the va|
|00001b50| 6c 75 65 73 20 69 6e 20 | 61 20 73 74 72 69 6e 67 |lues in |a string|
|00001b60| 20 77 69 6c 6c 20 62 65 | 20 70 72 6f 70 65 72 6c | will be| properl|
|00001b70| 79 20 64 65 6c 69 6d 69 | 74 65 64 20 28 74 68 65 |y delimi|ted (the|
|00001b80| 72 65 20 6d 61 79 20 62 | 65 20 6e 6f 20 73 70 61 |re may b|e no spa|
|00001b90| 63 65 20 62 65 74 77 65 | 65 6e 20 6f 6e 65 20 69 |ce betwe|en one i|
|00001ba0| 74 65 6d 20 61 6e 64 20 | 74 68 65 20 6e 65 78 74 |tem and |the next|
|00001bb0| 2c 20 6f 72 20 61 20 73 | 69 6e 67 6c 65 20 69 74 |, or a s|ingle it|
|00001bc0| 65 6d 20 6d 61 79 20 62 | 65 20 62 72 6f 6b 65 6e |em may b|e broken|
|00001bd0| 20 75 70 20 62 79 20 73 | 70 61 63 65 73 29 2e 20 | up by s|paces). |
|00001be0| 20 20 46 6f 72 20 74 68 | 69 73 20 72 65 61 73 6f | For th|is reaso|
|00001bf0| 6e 2c 20 74 68 65 20 73 | 61 66 65 73 74 20 77 61 |n, the s|afest wa|
|00001c00| 79 20 74 6f 20 75 73 65 | 20 52 65 61 64 53 74 72 |y to use| ReadStr|
|00001c10| 69 6e 67 20 77 68 65 6e | 20 72 65 61 64 69 6e 67 |ing when| reading|
|00001c20| 20 6d 75 6c 74 69 70 6c | 65 20 76 61 6c 75 65 73 | multipl|e values|
|00001c30| 20 66 72 6f 6d 20 61 20 | 73 69 6e 67 6c 65 20 73 | from a |single s|
|00001c40| 74 72 69 6e 67 20 69 73 | 20 74 6f 20 63 61 6c 6c |tring is| to call|
|00001c50| 20 69 74 20 66 6f 72 20 | 65 61 63 68 20 73 75 62 | it for |each sub|
|00001c60| 73 74 72 69 6e 67 20 74 | 68 61 74 20 6d 75 73 74 |string t|hat must|
|00001c70| 20 62 65 20 65 76 61 6c | 75 61 74 65 64 2e 20 20 | be eval|uated. |
|00001c80| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 6f 20 |For exam|ple, to |
|00001c90| 72 65 61 64 20 74 68 65 | 20 76 61 72 69 61 62 6c |read the| variabl|
|00001ca0| 65 73 20 61 6c 70 68 61 | 20 61 6e 64 20 62 65 74 |es alpha| and bet|
|00001cb0| 61 20 66 72 6f 6d 20 74 | 68 65 20 73 74 72 69 6e |a from t|he strin|
|00001cc0| 67 20 75 4e 61 6d 65 20 | 75 73 65 64 20 69 6e 20 |g uName |used in |
|00001cd0| 70 72 65 76 69 6f 75 73 | 20 65 78 61 6d 70 6c 65 |previous| example|
|00001ce0| 73 2c 0d 20 20 52 65 61 | 64 53 74 72 69 6e 67 28 |s,. Rea|dString(|
|00001cf0| 63 6f 70 79 28 75 4e 61 | 6d 65 2c 31 2c 35 29 2c |copy(uNa|me,1,5),|
|00001d00| 61 6c 70 68 61 29 3b 0d | 20 20 52 65 61 64 53 74 |alpha);.| ReadSt|
|00001d10| 72 69 6e 67 28 63 6f 70 | 79 28 75 4e 61 6d 65 2c |ring(cop|y(uName,|
|00001d20| 36 2c 35 29 2c 62 65 74 | 61 29 3b 0d 20 20 49 66 |6,5),bet|a);. If|
|00001d30| 20 79 6f 75 72 20 70 61 | 72 74 69 63 75 6c 61 72 | your pa|rticular|
|00001d40| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 20 | impleme|ntation |
|00001d50| 6f 66 20 50 61 73 63 61 | 6c 20 64 6f 65 73 6e 27 |of Pasca|l doesn'|
|00001d60| 74 20 73 75 70 70 6f 72 | 74 20 66 75 6e 63 74 69 |t suppor|t functi|
|00001d70| 6f 6e 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 |ons equi|valent t|
|00001d80| 6f 20 22 53 74 72 69 6e | 67 4f 66 22 20 61 6e 64 |o "Strin|gOf" and|
|00001d90| 20 22 52 65 61 64 53 74 | 72 69 6e 67 22 20 28 6f | "ReadSt|ring" (o|
|00001da0| 72 20 69 66 20 79 6f 75 | 20 61 72 65 20 64 65 76 |r if you| are dev|
|00001db0| 65 6c 6f 70 69 6e 67 20 | 61 20 63 6f 64 65 20 72 |eloping |a code r|
|00001dc0| 65 73 6f 75 72 63 65 20 | 69 6e 20 77 68 69 63 68 |esource |in which|
|00001dd0| 20 53 74 72 69 6e 67 4f | 66 20 61 6e 64 20 52 65 | StringO|f and Re|
|00001de0| 61 64 53 74 72 69 6e 67 | 20 61 72 65 20 6e 6f 74 |adString| are not|
|00001df0| 20 73 75 70 70 6f 72 74 | 65 64 29 2c 20 74 68 65 | support|ed), the|
|00001e00| 6e 20 75 73 65 20 74 68 | 65 20 55 74 69 6c 49 74 |n use th|e UtilIt|
|00001e10| 2c 20 74 6f 6f 6c 62 6f | 78 2c 20 6f 72 20 53 41 |, toolbo|x, or SA|
|00001e20| 4e 45 20 72 6f 75 74 69 | 6e 65 73 20 6d 65 6e 74 |NE routi|nes ment|
|00001e30| 69 6f 6e 65 64 20 61 62 | 6f 76 65 2e 0d 0d 43 20 |ioned ab|ove...C |
|00001e40| 20 43 20 70 72 6f 76 69 | 64 65 73 20 61 6e 20 65 | C provi|des an e|
|00001e50| 78 74 65 6e 73 69 76 65 | 20 73 65 74 20 6f 66 20 |xtensive| set of |
|00001e60| 73 74 72 69 6e 67 2d 68 | 61 6e 64 6c 69 6e 67 20 |string-h|andling |
|00001e70| 66 75 6e 63 74 69 6f 6e | 73 2e 20 20 46 72 6f 6d |function|s. From|
|00001e80| 20 74 68 65 20 70 65 72 | 73 70 65 63 74 69 76 65 | the per|spective|
|00001e90| 20 6f 66 20 6f 74 68 65 | 72 20 6c 61 6e 67 75 61 | of othe|r langua|
|00001ea0| 67 65 73 2c 20 6d 61 6e | 79 20 6f 66 20 74 68 65 |ges, man|y of the|
|00001eb0| 73 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |se funct|ions are|
|00001ec0| 20 6e 65 63 65 73 73 61 | 72 79 20 62 65 63 61 75 | necessa|ry becau|
|00001ed0| 73 65 20 43 20 64 6f 65 | 73 20 6e 6f 74 20 70 72 |se C doe|s not pr|
|00001ee0| 6f 76 69 64 65 20 6d 6f | 72 65 20 64 69 72 65 63 |ovide mo|re direc|
|00001ef0| 74 20 77 61 79 73 20 6f | 66 20 61 63 63 6f 6d 70 |t ways o|f accomp|
|00001f00| 6c 69 73 68 69 6e 67 20 | 74 68 65 20 73 61 6d 65 |lishing |the same|
|00001f10| 20 74 61 73 6b 2e 20 20 | 46 6f 72 20 65 78 61 6d | task. |For exam|
|00001f20| 70 6c 65 2c 20 65 76 65 | 6e 20 74 68 65 20 73 69 |ple, eve|n the si|
|00001f30| 6d 70 6c 65 73 74 20 6f | 66 20 6f 70 65 72 61 74 |mplest o|f operat|
|00001f40| 69 6f 6e 73 20 73 75 63 | 68 20 61 73 20 63 6f 6d |ions suc|h as com|
|00001f50| 70 61 72 69 6e 67 20 61 | 6e 64 20 61 73 73 69 67 |paring a|nd assig|
|00001f60| 6e 69 6e 67 20 73 74 72 | 69 6e 67 73 20 61 72 65 |ning str|ings are|
|00001f70| 20 66 75 6e 63 74 69 6f | 6e 20 62 61 73 65 64 3a | functio|n based:|
|00001f80| 0d 20 20 73 74 72 63 70 | 79 28 75 4e 61 6d 65 2c |. strcp|y(uName,|
|00001f90| 22 45 64 69 74 49 74 2e | 52 73 72 63 22 29 3b 20 |"EditIt.|Rsrc"); |
|00001fa0| 20 20 2f 2a 20 61 73 73 | 69 67 6e 20 73 74 72 69 | /* ass|ign stri|
|00001fb0| 6e 67 20 2a 2f 0d 20 20 | 69 66 20 28 73 74 72 63 |ng */. |if (strc|
|00001fc0| 6d 70 28 75 4e 61 6d 65 | 2c 22 52 65 64 22 29 20 |mp(uName|,"Red") |
|00001fd0| 3d 3d 20 30 29 20 20 2f | 2a 20 63 6f 6d 70 61 72 |== 0) /|* compar|
|00001fe0| 65 20 73 74 72 69 6e 67 | 73 20 2a 2f 0d 20 20 4f |e string|s */. O|
|00001ff0| 6e 20 74 68 65 20 62 72 | 69 67 68 74 20 73 69 64 |n the br|ight sid|
|00002000| 65 2c 20 74 68 65 20 43 | 20 66 75 6e 63 74 69 6f |e, the C| functio|
|00002010| 6e 73 20 22 73 70 72 69 | 6e 74 66 22 20 61 6e 64 |ns "spri|ntf" and|
|00002020| 20 22 73 73 63 61 6e 66 | 22 20 70 72 6f 76 69 64 | "sscanf|" provid|
|00002030| 65 20 6e 65 61 72 6c 79 | 20 61 6c 6c 20 6f 66 20 |e nearly| all of |
|00002040| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |the func|tionalit|
|00002050| 79 20 6f 66 20 74 68 65 | 20 65 71 75 69 76 61 6c |y of the| equival|
|00002060| 65 6e 74 20 46 6f 72 74 | 72 61 6e 20 22 77 72 69 |ent Fort|ran "wri|
|00002070| 74 65 22 20 61 6e 64 20 | 22 72 65 61 64 22 20 74 |te" and |"read" t|
|00002080| 6f 20 69 6e 74 65 72 6e | 61 6c 20 66 69 6c 65 73 |o intern|al files|
|00002090| 2e 20 20 54 72 61 6e 73 | 6c 61 74 69 6e 67 20 66 |. Trans|lating f|
|000020a0| 72 6f 6d 20 74 68 65 20 | 61 62 6f 76 65 20 46 6f |rom the |above Fo|
|000020b0| 72 74 72 61 6e 20 65 78 | 61 6d 70 6c 65 73 2c 0d |rtran ex|amples,.|
|000020c0| 09 6c 6f 6e 67 20 20 61 | 6c 70 68 61 2c 62 65 74 |.long a|lpha,bet|
|000020d0| 61 3b 0d 20 20 2e 2e 2e | 0d 09 61 6c 70 68 61 20 |a;. ...|..alpha |
|000020e0| 3d 20 35 3b 0d 09 62 65 | 74 61 20 3d 20 31 30 3b |= 5;..be|ta = 10;|
|000020f0| 0d 09 73 70 72 69 6e 74 | 66 28 75 4e 61 6d 65 2c |..sprint|f(uName,|
|00002100| 22 25 35 6c 64 25 35 6c | 64 22 2c 61 6c 70 68 61 |"%5ld%5l|d",alpha|
|00002110| 2c 62 65 74 61 29 3b 20 | 2f 2a 20 22 6c 22 20 66 |,beta); |/* "l" f|
|00002120| 6f 72 20 6c 6f 6e 67 20 | 2a 2f 0d 77 69 6c 6c 20 |or long |*/.will |
|00002130| 77 72 69 74 65 20 61 6c | 70 68 61 20 61 6e 64 20 |write al|pha and |
|00002140| 62 65 74 61 20 74 6f 20 | 75 4e 61 6d 65 20 75 73 |beta to |uName us|
|00002150| 69 6e 67 20 35 20 63 68 | 61 72 61 63 74 65 72 73 |ing 5 ch|aracters|
|00002160| 20 66 6f 72 20 65 61 63 | 68 20 6e 75 6d 62 65 72 | for eac|h number|
|00002170| 2e 0d 20 20 54 68 65 20 | 75 73 65 20 6f 66 20 22 |.. The |use of "|
|00002180| 73 73 63 61 6e 66 22 20 | 6c 6f 6f 6b 73 20 6d 75 |sscanf" |looks mu|
|00002190| 63 68 20 6c 69 6b 65 20 | 74 68 65 20 65 71 75 69 |ch like |the equi|
|000021a0| 76 61 6c 65 6e 74 20 46 | 6f 72 74 72 61 6e 20 66 |valent F|ortran f|
|000021b0| 6f 72 6d 61 74 74 65 64 | 20 22 72 65 61 64 22 2e |ormatted| "read".|
|000021c0| 20 20 49 6e 20 6d 61 6e | 79 20 63 61 73 65 73 2c | In man|y cases,|
|000021d0| 20 68 6f 77 65 76 65 72 | 2c 20 73 73 63 61 6e 66 | however|, sscanf|
|000021e0| 20 64 6f 65 73 20 6e 6f | 74 20 70 72 6f 76 65 20 | does no|t prove |
|000021f0| 74 6f 20 62 65 20 61 20 | 72 65 6c 69 61 62 6c 65 |to be a |reliable|
|00002200| 20 77 61 79 20 6f 66 20 | 72 65 61 64 69 6e 67 20 | way of |reading |
|00002210| 6d 75 6c 74 69 70 6c 65 | 20 76 61 6c 75 65 73 20 |multiple| values |
|00002220| 66 72 6f 6d 20 61 20 73 | 69 6e 67 6c 65 20 73 74 |from a s|ingle st|
|00002230| 72 69 6e 67 2e 20 20 4f | 6e 65 20 70 72 6f 62 6c |ring. O|ne probl|
|00002240| 65 6d 20 69 73 20 74 68 | 61 74 20 74 68 65 20 66 |em is th|at the f|
|00002250| 6f 72 6d 61 74 20 77 68 | 69 63 68 20 79 6f 75 20 |ormat wh|ich you |
|00002260| 65 6e 74 65 72 20 61 73 | 20 70 61 72 74 20 6f 66 |enter as| part of|
|00002270| 20 74 68 65 20 73 73 63 | 61 6e 66 20 63 61 6c 6c | the ssc|anf call|
|00002280| 20 69 73 20 6e 6f 74 20 | 73 74 72 69 63 74 6c 79 | is not |strictly|
|00002290| 20 66 6f 6c 6c 6f 77 65 | 64 20 69 66 20 74 68 65 | followe|d if the|
|000022a0| 20 66 75 6e 63 74 69 6f | 6e 20 65 6e 63 6f 75 6e | functio|n encoun|
|000022b0| 74 65 72 73 20 73 70 61 | 63 65 73 20 61 74 20 74 |ters spa|ces at t|
|000022c0| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|000022d0| 61 20 66 69 65 6c 64 2e | 20 20 49 6e 20 74 68 69 |a field.| In thi|
|000022e0| 73 20 63 61 73 65 20 74 | 68 65 20 73 70 61 63 65 |s case t|he space|
|000022f0| 73 20 61 72 65 20 73 6b | 69 70 70 65 64 20 6f 76 |s are sk|ipped ov|
|00002300| 65 72 20 75 6e 74 69 6c | 20 61 20 6e 6f 6e 2d 73 |er until| a non-s|
|00002310| 70 61 63 65 20 63 68 61 | 72 61 63 74 65 72 20 69 |pace cha|racter i|
|00002320| 73 20 66 6f 75 6e 64 20 | 62 65 66 6f 72 65 20 72 |s found |before r|
|00002330| 65 61 64 69 6e 67 20 74 | 68 65 20 6e 65 78 74 20 |eading t|he next |
|00002340| 76 61 72 69 61 62 6c 65 | 20 77 69 74 68 20 74 68 |variable| with th|
|00002350| 65 20 6e 65 78 74 20 66 | 6f 72 6d 61 74 2c 20 74 |e next f|ormat, t|
|00002360| 68 65 72 65 62 79 20 70 | 75 74 74 69 6e 67 20 74 |hereby p|utting t|
|00002370| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 73 |he rest |of the s|
|00002380| 63 61 6e 20 22 6f 75 74 | 20 6f 66 20 73 79 6e 63 |can "out| of sync|
|00002390| 68 22 2e 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 |h". Thi|s functi|
|000023a0| 6f 6e 20 61 6c 73 6f 20 | 68 61 73 20 70 72 6f 62 |on also |has prob|
|000023b0| 6c 65 6d 73 20 69 66 20 | 74 68 65 20 63 6f 6e 74 |lems if |the cont|
|000023c0| 65 6e 74 73 20 6f 66 20 | 61 20 66 69 65 6c 64 20 |ents of |a field |
|000023d0| 63 6f 6e 74 61 69 6e 20 | 73 70 61 63 65 73 20 62 |contain |spaces b|
|000023e0| 65 74 77 65 65 6e 20 6e | 6f 6e 2d 73 70 61 63 65 |etween n|on-space|
|000023f0| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0d 20 20 54 | charact|ers.. T|
|00002400| 68 65 20 62 6f 74 74 6f | 6d 20 6c 69 6e 65 20 69 |he botto|m line i|
|00002410| 73 20 74 68 61 74 20 73 | 73 63 61 6e 66 20 73 68 |s that s|scanf sh|
|00002420| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 75 73 65 64 |ould not| be used|
|00002430| 20 74 6f 20 72 65 61 64 | 20 6d 75 6c 74 69 70 6c | to read| multipl|
|00002440| 65 20 76 61 6c 75 65 73 | 20 66 72 6f 6d 20 61 20 |e values| from a |
|00002450| 73 74 72 69 6e 67 20 69 | 6e 20 6f 6e 65 20 73 74 |string i|n one st|
|00002460| 61 74 65 6d 65 6e 74 20 | 75 6e 6c 65 73 73 20 79 |atement |unless y|
|00002470| 6f 75 20 61 72 65 20 63 | 65 72 74 61 69 6e 20 74 |ou are c|ertain t|
|00002480| 68 61 74 20 74 68 65 20 | 6e 6f 6e 2d 73 70 61 63 |hat the |non-spac|
|00002490| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 69 6e 20 |e charac|ters in |
|000024a0| 74 68 65 20 73 75 62 73 | 74 72 69 6e 67 73 20 62 |the subs|trings b|
|000024b0| 65 69 6e 67 20 72 65 61 | 64 20 61 72 65 20 6c 65 |eing rea|d are le|
|000024c0| 66 74 2d 6a 75 73 74 69 | 66 69 65 64 20 69 6e 20 |ft-justi|fied in |
|000024d0| 65 61 63 68 20 66 69 65 | 6c 64 2e 20 20 49 6e 20 |each fie|ld. In |
|000024e0| 61 6c 6c 20 6f 74 68 65 | 72 20 63 61 73 65 73 20 |all othe|r cases |
|000024f0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 72 65 61 64 20 |you shou|ld read |
|00002500| 65 61 63 68 20 73 75 62 | 73 74 72 69 6e 67 20 77 |each sub|string w|
|00002510| 69 74 68 20 61 20 73 65 | 70 61 72 61 74 65 20 73 |ith a se|parate s|
|00002520| 74 61 74 65 6d 65 6e 74 | 20 28 61 73 20 77 69 74 |tatement| (as wit|
|00002530| 68 20 50 61 73 63 61 6c | 29 2e 20 20 46 6f 72 20 |h Pascal|). For |
|00002540| 65 78 61 6d 70 6c 65 2c | 20 74 6f 20 72 65 61 64 |example,| to read|
|00002550| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 20 61 | the var|iables a|
|00002560| 6c 70 68 61 20 61 6e 64 | 20 62 65 74 61 20 66 72 |lpha and| beta fr|
|00002570| 6f 6d 20 74 68 65 20 73 | 74 72 69 6e 67 20 75 4e |om the s|tring uN|
|00002580| 61 6d 65 2c 20 75 73 65 | 0d 20 20 73 73 63 61 6e |ame, use|. sscan|
|00002590| 66 28 75 4e 61 6d 65 2c | 22 25 35 6c 64 22 2c 26 |f(uName,|"%5ld",&|
|000025a0| 61 6c 70 68 61 29 3b 0d | 20 20 73 73 63 61 6e 66 |alpha);.| sscanf|
|000025b0| 28 26 75 4e 61 6d 65 5b | 35 5d 2c 22 25 35 6c 64 |(&uName[|5],"%5ld|
|000025c0| 22 2c 26 62 65 74 61 29 | 3b 0d 77 68 65 72 65 20 |",&beta)|;.where |
|000025d0| 22 26 75 4e 61 6d 65 5b | 35 5d 22 20 6d 65 61 6e |"&uName[|5]" mean|
|000025e0| 73 20 74 68 61 74 20 74 | 68 65 20 73 65 63 6f 6e |s that t|he secon|
|000025f0| 64 20 73 63 61 6e 20 73 | 68 6f 75 6c 64 20 62 65 |d scan s|hould be|
|00002600| 67 69 6e 20 61 74 20 74 | 68 65 20 6c 6f 63 61 74 |gin at t|he locat|
|00002610| 69 6f 6e 20 69 6e 20 6d | 65 6d 6f 72 79 20 77 68 |ion in m|emory wh|
|00002620| 69 63 68 20 63 6f 72 72 | 65 73 70 6f 6e 64 73 20 |ich corr|esponds |
|00002630| 74 6f 20 74 68 65 20 73 | 69 78 74 68 20 63 68 61 |to the s|ixth cha|
|00002640| 72 61 63 74 65 72 20 70 | 6f 73 69 74 69 6f 6e 20 |racter p|osition |
|00002650| 6f 66 20 75 4e 61 6d 65 | 20 28 30 2d 62 61 73 65 |of uName| (0-base|
|00002660| 64 20 61 72 72 61 79 20 | 69 6e 64 65 78 69 6e 67 |d array |indexing|
|00002670| 29 2e 00 00 0d 9b 43 6f | 6d 6d 6f 6e 20 43 20 50 |).....Co|mmon C P|
|00002680| 69 74 66 61 6c 6c 73 0d | 20 20 57 65 20 6f 66 74 |itfalls.| We oft|
|00002690| 65 6e 20 65 6e 63 6f 75 | 6e 74 65 72 20 70 72 6f |en encou|nter pro|
|000026a0| 67 72 61 6d 6d 65 72 73 | 20 77 68 6f 20 61 72 65 |grammers| who are|
|000026b0| 20 6e 65 77 20 74 6f 20 | 43 20 61 6e 64 20 63 61 | new to |C and ca|
|000026c0| 6c 6c 20 75 73 20 77 69 | 74 68 20 43 2d 72 65 6c |ll us wi|th C-rel|
|000026d0| 61 74 65 64 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |ated pro|gramming|
|000026e0| 20 70 72 6f 62 6c 65 6d | 73 2e 20 20 48 65 72 65 | problem|s. Here|
|000026f0| 20 61 72 65 20 61 20 66 | 65 77 20 6f 66 20 74 68 | are a f|ew of th|
|00002700| 65 20 6d 61 6e 79 20 74 | 68 69 6e 67 73 20 74 6f |e many t|hings to|
|00002710| 20 77 61 74 63 68 20 6f | 75 74 20 66 6f 72 20 77 | watch o|ut for w|
|00002720| 68 65 6e 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |hen prog|ramming |
|00002730| 77 69 74 68 20 43 2e 0d | 0d a5 20 43 6f 64 65 20 |with C..|.. Code |
|00002740| 77 72 69 74 74 65 6e 20 | 69 6e 20 43 20 63 61 6e |written |in C can|
|00002750| 20 62 65 20 73 69 6d 75 | 6c 74 61 6e 65 6f 75 73 | be simu|ltaneous|
|00002760| 6c 79 20 76 65 72 79 20 | 70 6f 77 65 72 66 75 6c |ly very |powerful|
|00002770| 20 61 6e 64 20 76 65 72 | 79 20 6f 62 73 63 75 72 | and ver|y obscur|
|00002780| 65 2e 20 20 57 65 20 68 | 61 76 65 20 74 72 69 65 |e. We h|ave trie|
|00002790| 64 20 74 6f 20 77 72 69 | 74 65 20 74 68 65 20 43 |d to wri|te the C|
|000027a0| 20 65 78 61 6d 70 6c 65 | 20 70 72 6f 67 72 61 6d | example| program|
|000027b0| 73 20 69 6e 20 73 75 63 | 68 20 61 20 77 61 79 20 |s in suc|h a way |
|000027c0| 74 68 61 74 20 74 68 65 | 79 20 6d 61 69 6e 74 61 |that the|y mainta|
|000027d0| 69 6e 20 61 20 6c 69 6e | 65 2d 62 79 2d 6c 69 6e |in a lin|e-by-lin|
|000027e0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 65 6e 63 65 |e corres|pondence|
|000027f0| 20 74 6f 20 74 68 65 20 | 46 6f 72 74 72 61 6e 20 | to the |Fortran |
|00002800| 61 6e 64 20 50 61 73 63 | 61 6c 20 65 78 61 6d 70 |and Pasc|al examp|
|00002810| 6c 65 20 70 72 6f 67 72 | 61 6d 73 2e 20 20 49 66 |le progr|ams. If|
|00002820| 20 79 6f 75 20 64 6f 6e | 27 74 20 75 6e 64 65 72 | you don|'t under|
|00002830| 73 74 61 6e 64 20 77 68 | 61 74 20 77 65 20 61 72 |stand wh|at we ar|
|00002840| 65 20 64 6f 69 6e 67 20 | 69 6e 20 43 2c 20 74 72 |e doing |in C, tr|
|00002850| 79 20 6c 6f 6f 6b 69 6e | 67 20 61 74 20 74 68 65 |y lookin|g at the|
|00002860| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 46 | corresp|onding F|
|00002870| 6f 72 74 72 61 6e 20 6f | 72 20 50 61 73 63 61 6c |ortran o|r Pascal|
|00002880| 20 73 6f 75 72 63 65 20 | 63 6f 64 65 2e 0d 0d a5 | source |code....|
|00002890| 20 41 20 6d 69 73 73 69 | 6e 67 20 22 3b 22 20 61 | A missi|ng ";" a|
|000028a0| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 20 6c |t the en|d of a l|
|000028b0| 69 6e 65 2c 20 6f 72 20 | 74 68 65 20 75 73 65 20 |ine, or |the use |
|000028c0| 6f 66 20 22 3d 22 20 69 | 6e 73 74 65 61 64 20 6f |of "=" i|nstead o|
|000028d0| 66 20 22 3d 3d 22 20 69 | 6e 20 61 20 6c 6f 67 69 |f "==" i|n a logi|
|000028e0| 63 61 6c 20 65 78 70 72 | 65 73 73 69 6f 6e 20 61 |cal expr|ession a|
|000028f0| 72 65 20 63 6f 6d 6d 6f | 6e 20 6d 69 73 74 61 6b |re commo|n mistak|
|00002900| 65 73 2e 0d 0d a5 20 43 | 20 61 6c 77 61 79 73 20 |es.... C| always |
|00002910| 75 73 65 73 20 30 2d 62 | 61 73 65 64 20 61 72 72 |uses 0-b|ased arr|
|00002920| 61 79 20 69 6e 64 65 78 | 69 6e 67 2c 20 61 6c 74 |ay index|ing, alt|
|00002930| 68 6f 75 67 68 20 61 72 | 72 61 79 20 64 65 63 6c |hough ar|ray decl|
|00002940| 61 72 61 74 69 6f 6e 73 | 20 61 72 65 20 31 2d 62 |arations| are 1-b|
|00002950| 61 73 65 64 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |ased. F|or examp|
|00002960| 6c 65 2c 20 61 6e 20 61 | 72 72 61 79 20 22 58 22 |le, an a|rray "X"|
|00002970| 20 6f 66 20 31 30 20 69 | 6e 74 65 67 65 72 73 20 | of 10 i|ntegers |
|00002980| 77 6f 75 6c 64 20 62 65 | 20 64 69 6d 65 6e 73 69 |would be| dimensi|
|00002990| 6f 6e 65 64 20 61 73 20 | 22 58 5b 31 30 5d 22 20 |oned as |"X[10]" |
|000029a0| 62 75 74 20 74 68 65 20 | 31 30 20 65 6c 65 6d 65 |but the |10 eleme|
|000029b0| 6e 74 73 20 77 6f 75 6c | 64 20 62 65 20 69 6e 64 |nts woul|d be ind|
|000029c0| 65 78 65 64 20 66 72 6f | 6d 20 30 20 74 6f 20 39 |exed fro|m 0 to 9|
|000029d0| 2e 20 20 4d 61 6e 79 20 | 43 20 70 72 6f 67 72 61 |. Many |C progra|
|000029e0| 6d 6d 65 72 73 20 66 69 | 6e 64 20 74 68 69 73 20 |mmers fi|nd this |
|000029f0| 63 6f 75 6e 74 65 72 2d | 69 6e 74 75 69 74 69 76 |counter-|intuitiv|
|00002a00| 65 20 61 6e 64 20 61 64 | 64 20 61 6e 20 65 78 74 |e and ad|d an ext|
|00002a10| 72 61 20 65 6c 65 6d 65 | 6e 74 20 74 6f 20 65 61 |ra eleme|nt to ea|
|00002a20| 63 68 20 61 72 72 61 79 | 20 73 6f 20 74 68 61 74 |ch array| so that|
|00002a30| 20 74 68 65 79 20 63 61 | 6e 20 75 73 65 20 31 2d | they ca|n use 1-|
|00002a40| 62 61 73 65 64 20 69 6e | 64 65 78 69 6e 67 21 0d |based in|dexing!.|
|00002a50| 0d a5 20 49 66 20 61 20 | 22 63 61 73 65 22 20 69 |.. If a |"case" i|
|00002a60| 6e 20 61 20 22 73 77 69 | 74 63 68 22 20 62 6c 6f |n a "swi|tch" blo|
|00002a70| 63 6b 20 64 6f 65 73 20 | 6e 6f 74 20 65 6e 64 20 |ck does |not end |
|00002a80| 69 6e 20 22 62 72 65 61 | 6b 22 2c 20 74 68 65 6e |in "brea|k", then|
|00002a90| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00002aa0| 61 73 65 20 69 73 20 61 | 6c 73 6f 20 65 78 65 63 |ase is a|lso exec|
|00002ab0| 75 74 65 64 2e 20 20 4d | 6f 73 74 20 70 72 6f 67 |uted. M|ost prog|
|00002ac0| 72 61 6d 6d 65 72 73 20 | 66 69 6e 64 20 74 68 69 |rammers |find thi|
|00002ad0| 73 20 74 6f 20 62 65 20 | 63 6f 75 6e 74 65 72 2d |s to be |counter-|
|00002ae0| 69 6e 74 75 69 74 69 76 | 65 20 28 74 68 65 20 70 |intuitiv|e (the p|
|00002af0| 6f 69 6e 74 20 6f 66 20 | 61 20 63 61 73 65 20 62 |oint of |a case b|
|00002b00| 6c 6f 63 6b 20 69 73 20 | 61 6c 6d 6f 73 74 20 61 |lock is |almost a|
|00002b10| 6c 77 61 79 73 20 74 6f | 20 65 78 65 63 75 74 65 |lways to| execute|
|00002b20| 20 6f 6e 65 20 63 61 73 | 65 20 6f 72 20 61 6e 6f | one cas|e or ano|
|00002b30| 74 68 65 72 29 2e 0d 0d | a5 20 54 68 65 20 66 6f |ther)...|. The fo|
|00002b40| 6c 6c 6f 77 69 6e 67 20 | 65 78 70 72 65 73 73 69 |llowing |expressi|
|00002b50| 6f 6e 73 20 61 72 65 20 | 65 71 75 69 76 61 6c 65 |ons are |equivale|
|00002b60| 6e 74 2c 20 61 6e 64 20 | 62 6f 74 68 20 66 6f 72 |nt, and |both for|
|00002b70| 6d 73 20 61 72 65 20 75 | 73 65 64 20 62 79 20 43 |ms are u|sed by C|
|00002b80| 20 70 72 6f 67 72 61 6d | 6d 65 72 73 3a 20 20 22 | program|mers: "|
|00002b90| 28 2a 67 57 69 6e 64 70 | 74 72 5b 30 5d 29 2e 74 |(*gWindp|tr[0]).t|
|00002ba0| 78 46 6f 6e 74 22 20 20 | 61 6e 64 20 20 22 67 57 |xFont" |and "gW|
|00002bb0| 69 6e 64 70 74 72 5b 30 | 5d 2d 3e 74 78 46 6f 6e |indptr[0|]->txFon|
|00002bc0| 74 22 2e 20 20 4e 6f 74 | 65 2c 20 69 6e 20 70 61 |t". Not|e, in pa|
|00002bd0| 72 74 69 63 75 6c 61 72 | 2c 20 74 68 65 20 6e 65 |rticular|, the ne|
|00002be0| 65 64 20 69 6e 20 74 68 | 69 73 20 63 61 73 65 20 |ed in th|is case |
|00002bf0| 74 6f 20 75 73 65 20 70 | 61 72 65 6e 74 68 65 73 |to use p|arenthes|
|00002c00| 65 73 20 77 69 74 68 20 | 22 2a 22 2c 20 73 69 6e |es with |"*", sin|
|00002c10| 63 65 20 22 2e 22 20 74 | 61 6b 65 73 20 70 72 65 |ce "." t|akes pre|
|00002c20| 63 65 64 65 6e 63 65 20 | 6f 76 65 72 20 22 2a 22 |cedence |over "*"|
|00002c30| 2e 0d 0d a5 20 41 6c 74 | 68 6f 75 67 68 20 74 68 |.... Alt|hough th|
|00002c40| 65 20 61 64 64 72 65 73 | 73 20 6f 66 20 61 6e 20 |e addres|s of an |
|00002c50| 61 72 72 61 79 20 6f 62 | 74 61 69 6e 65 64 20 77 |array ob|tained w|
|00002c60| 69 74 68 20 74 68 65 20 | 22 26 22 20 6f 70 65 72 |ith the |"&" oper|
|00002c70| 61 74 6f 72 20 61 6e 64 | 20 74 68 65 20 61 72 72 |ator and| the arr|
|00002c80| 61 79 20 6e 61 6d 65 20 | 63 61 6e 20 62 65 20 75 |ay name |can be u|
|00002c90| 73 65 64 20 69 6e 74 65 | 72 63 68 61 6e 67 65 61 |sed inte|rchangea|
|00002ca0| 62 6c 79 20 69 6e 20 43 | 2c 20 77 65 20 68 61 76 |bly in C|, we hav|
|00002cb0| 65 2c 20 66 6f 72 20 63 | 6f 6e 73 69 73 74 65 6e |e, for c|onsisten|
|00002cc0| 63 79 20 61 63 72 6f 73 | 73 20 63 6f 6d 70 69 6c |cy acros|s compil|
|00002cd0| 65 72 73 2c 20 61 76 6f | 69 64 65 64 20 75 73 65 |ers, avo|ided use|
|00002ce0| 20 6f 66 20 74 68 65 20 | 22 26 22 20 6f 70 65 72 | of the |"&" oper|
|00002cf0| 61 74 6f 72 20 62 65 66 | 6f 72 65 20 61 72 72 61 |ator bef|ore arra|
|00002d00| 79 20 6e 61 6d 65 73 2e | 20 20 4e 6f 74 65 2c 20 |y names.| Note, |
|00002d10| 68 6f 77 65 76 65 72 2c | 20 74 68 61 74 20 74 68 |however,| that th|
|00002d20| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 63 65 20 6f |is equiv|alence o|
|00002d30| 66 20 61 6e 20 61 72 72 | 61 79 27 73 20 61 64 64 |f an arr|ay's add|
|00002d40| 72 65 73 73 20 61 6e 64 | 20 74 68 65 20 61 72 72 |ress and| the arr|
|00002d50| 61 79 20 6e 61 6d 65 20 | 64 6f 65 73 20 6e 6f 74 |ay name |does not|
|00002d60| 20 65 78 74 65 6e 64 20 | 74 6f 20 22 73 74 72 75 | extend |to "stru|
|00002d70| 63 74 22 73 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 |ct"s. F|or examp|
|00002d80| 6c 65 2c 20 74 68 65 20 | 74 6f 6f 6c 62 6f 78 20 |le, the |toolbox |
|00002d90| 74 79 70 65 20 22 52 65 | 63 74 22 20 69 73 20 61 |type "Re|ct" is a|
|00002da0| 20 73 74 72 75 63 74 2c | 20 6e 6f 74 20 61 6e 20 | struct,| not an |
|00002db0| 61 72 72 61 79 2c 20 73 | 6f 20 61 20 76 61 72 69 |array, s|o a vari|
|00002dc0| 61 62 6c 65 20 6f 66 20 | 74 68 69 73 20 74 79 70 |able of |this typ|
|00002dd0| 65 20 73 68 6f 75 6c 64 | 20 61 6c 77 61 79 73 20 |e should| always |
|00002de0| 62 65 20 70 72 65 63 65 | 65 64 65 64 20 62 79 20 |be prece|eded by |
|00002df0| 22 26 22 20 77 68 65 6e | 20 70 61 73 73 65 64 20 |"&" when| passed |
|00002e00| 61 73 20 61 6e 20 61 72 | 67 75 6d 65 6e 74 20 69 |as an ar|gument i|
|00002e10| 6e 20 61 20 74 6f 6f 6c | 62 6f 78 20 63 61 6c 6c |n a tool|box call|
|00002e20| 2e 20 20 46 69 6e 61 6c | 6c 79 2c 20 69 66 20 72 |. Final|ly, if r|
|00002e30| 65 66 65 72 65 6e 63 69 | 6e 67 20 74 68 65 20 61 |eferenci|ng the a|
|00002e40| 64 64 72 65 73 73 20 6f | 66 20 61 20 6e 6f 6e 61 |ddress o|f a nona|
|00002e50| 72 72 61 79 20 65 6c 65 | 6d 65 6e 74 20 77 69 74 |rray ele|ment wit|
|00002e60| 68 69 6e 20 61 6e 20 61 | 72 72 61 79 2c 20 74 68 |hin an a|rray, th|
|00002e70| 65 6e 20 74 68 65 20 22 | 26 22 20 6f 70 65 72 61 |en the "|&" opera|
|00002e80| 74 6f 72 20 6d 75 73 74 | 20 62 65 20 75 73 65 64 |tor must| be used|
|00002e90| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|00002ea0| 74 68 65 20 74 6f 6f 6c | 62 6f 78 20 63 61 6c 6c |the tool|box call|
|00002eb0| 20 42 6c 6f 63 6b 4d 6f | 76 65 20 65 78 70 65 63 | BlockMo|ve expec|
|00002ec0| 74 73 20 61 20 73 6f 75 | 72 63 65 20 61 64 64 72 |ts a sou|rce addr|
|00002ed0| 65 73 73 2c 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |ess, des|tination|
|00002ee0| 20 61 64 64 72 65 73 73 | 2c 20 61 6e 64 20 61 20 | address|, and a |
|00002ef0| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|00002f00| 74 6f 20 6d 6f 76 65 2e | 20 20 49 66 20 22 61 22 |to move.| If "a"|
|00002f10| 20 61 6e 64 20 22 62 22 | 20 61 72 65 20 6f 6e 65 | and "b"| are one|
|00002f20| 2d 64 69 6d 65 6e 73 69 | 6f 6e 61 6c 20 69 6e 74 |-dimensi|onal int|
|00002f30| 65 67 65 72 20 61 72 72 | 61 79 73 2c 20 74 68 65 |eger arr|ays, the|
|00002f40| 6e 20 77 72 69 74 69 6e | 67 0d 20 20 42 6c 6f 63 |n writin|g. Bloc|
|00002f50| 6b 4d 6f 76 65 28 26 61 | 5b 69 5d 2c 20 26 62 5b |kMove(&a|[i], &b[|
|00002f60| 6a 5d 2c 20 34 4c 29 3b | 0d 77 6f 75 6c 64 20 6d |j], 4L);|.would m|
|00002f70| 6f 76 65 20 34 20 62 79 | 74 65 73 20 66 72 6f 6d |ove 4 by|tes from|
|00002f80| 20 74 68 65 20 22 61 22 | 20 61 72 72 61 79 20 61 | the "a"| array a|
|00002f90| 74 20 65 6c 65 6d 65 6e | 74 20 22 69 22 20 74 6f |t elemen|t "i" to|
|00002fa0| 20 74 68 65 20 22 62 22 | 20 61 72 72 61 79 20 61 | the "b"| array a|
|00002fb0| 74 20 65 6c 65 6d 65 6e | 74 20 22 6a 22 2e 20 20 |t elemen|t "j". |
|00002fc0| 57 69 74 68 6f 75 74 20 | 74 68 65 20 22 26 22 20 |Without |the "&" |
|00002fd0| 6f 70 65 72 61 74 6f 72 | 2c 0d 20 20 42 6c 6f 63 |operator|,. Bloc|
|00002fe0| 6b 4d 6f 76 65 28 61 5b | 69 5d 2c 20 62 5b 6a 5d |kMove(a[|i], b[j]|
|00002ff0| 2c 20 34 4c 29 3b 0d 77 | 6f 75 6c 64 20 6d 6f 76 |, 4L);.w|ould mov|
|00003000| 65 20 34 20 62 79 74 65 | 73 20 66 72 6f 6d 20 74 |e 4 byte|s from t|
|00003010| 68 65 20 61 64 64 72 65 | 73 73 20 67 69 76 65 6e |he addre|ss given|
|00003020| 20 62 79 20 22 61 5b 69 | 5d 22 20 74 6f 20 74 68 | by "a[i|]" to th|
|00003030| 65 20 61 64 64 72 65 73 | 73 20 67 69 76 65 6e 20 |e addres|s given |
|00003040| 62 79 20 22 62 5b 6a 5d | 22 20 28 70 72 6f 62 61 |by "b[j]|" (proba|
|00003050| 62 6c 79 20 6e 6f 74 20 | 77 68 61 74 20 79 6f 75 |bly not |what you|
|00003060| 20 69 6e 74 65 6e 64 65 | 64 21 29 2e 20 20 4f 6e | intende|d!). On|
|00003070| 20 74 68 65 20 6f 74 68 | 65 72 20 68 61 6e 64 2c | the oth|er hand,|
|00003080| 20 69 66 20 22 61 22 20 | 61 6e 64 20 22 62 22 20 | if "a" |and "b" |
|00003090| 77 65 72 65 20 61 72 72 | 61 79 73 20 6f 66 20 73 |were arr|ays of s|
|000030a0| 74 72 69 6e 67 73 20 28 | 61 72 72 61 79 73 20 6f |trings (|arrays o|
|000030b0| 66 20 63 68 61 72 61 63 | 74 65 72 20 61 72 72 61 |f charac|ter arra|
|000030c0| 79 73 29 2c 20 74 68 65 | 6e 20 77 72 69 74 69 6e |ys), the|n writin|
|000030d0| 67 0d 20 20 42 6c 6f 63 | 6b 4d 6f 76 65 28 26 61 |g. Bloc|kMove(&a|
|000030e0| 5b 69 5d 2c 20 26 62 5b | 6a 5d 2c 20 34 4c 29 3b |[i], &b[|j], 4L);|
|000030f0| 0d 77 6f 75 6c 64 20 70 | 72 6f 64 75 63 65 20 74 |.would p|roduce t|
|00003100| 68 65 20 73 61 6d 65 20 | 72 65 73 75 6c 74 20 61 |he same |result a|
|00003110| 73 0d 20 20 42 6c 6f 63 | 6b 4d 6f 76 65 28 61 5b |s. Bloc|kMove(a[|
|00003120| 69 5d 2c 20 62 5b 6a 5d | 2c 20 34 4c 29 3b 0d 54 |i], b[j]|, 4L);.T|
|00003130| 68 69 73 20 63 61 6e 20 | 62 65 20 71 75 69 74 65 |his can |be quite|
|00003140| 20 63 6f 6e 66 75 73 69 | 6e 67 2e 0d 0d a5 20 57 | confusi|ng.... W|
|00003150| 68 65 6e 20 72 65 61 64 | 69 6e 67 20 61 6e 64 20 |hen read|ing and |
|00003160| 77 72 69 74 69 6e 67 20 | 69 6e 74 65 67 65 72 73 |writing |integers|
|00003170| 20 77 69 74 68 20 22 70 | 72 69 6e 74 66 22 20 61 | with "p|rintf" a|
|00003180| 6e 64 20 22 73 63 61 6e | 66 22 20 28 6f 72 20 72 |nd "scan|f" (or r|
|00003190| 65 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 73 |elated f|unctions|
|000031a0| 29 2c 20 22 6c 6f 6e 67 | 22 20 28 34 2d 62 79 74 |), "long|" (4-byt|
|000031b0| 65 29 20 69 6e 74 65 67 | 65 72 73 20 6d 75 73 74 |e) integ|ers must|
|000031c0| 20 62 65 20 61 73 73 69 | 67 6e 65 64 20 61 6e 20 | be assi|gned an |
|000031d0| 22 6c 22 20 28 6c 6f 77 | 65 72 20 63 61 73 65 20 |"l" (low|er case |
|000031e0| 4c 29 20 61 73 20 74 68 | 65 20 73 69 7a 65 20 73 |L) as th|e size s|
|000031f0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 69 6e 20 |pecifica|tion in |
|00003200| 74 68 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |the corr|espondin|
|00003210| 67 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 73 70 65 |g conver|sion spe|
|00003220| 63 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 74 68 |cificati|on of th|
|00003230| 65 20 66 6f 72 6d 61 74 | 20 73 74 72 69 6e 67 2e |e format| string.|
|00003240| 0d 0d a5 20 49 66 20 6e | 6f 74 20 75 73 69 6e 67 |... If n|ot using|
|00003250| 20 70 72 6f 74 6f 74 79 | 70 65 73 2c 20 79 6f 75 | prototy|pes, you|
|00003260| 20 6d 75 73 74 20 62 65 | 20 63 61 72 65 66 75 6c | must be| careful|
|00003270| 20 74 6f 20 70 61 73 73 | 20 74 68 65 20 70 72 6f | to pass| the pro|
|00003280| 70 65 72 20 69 6e 74 65 | 67 65 72 20 74 79 70 65 |per inte|ger type|
|00003290| 20 61 73 20 61 72 67 75 | 6d 65 6e 74 73 20 69 6e | as argu|ments in|
|000032a0| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 2e | functio|n calls.|
|000032b0| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 | For ex|ample, t|
|000032c0| 68 65 20 46 61 63 65 49 | 74 20 64 69 73 70 61 74 |he FaceI|t dispat|
|000032d0| 63 68 69 6e 67 20 70 72 | 6f 63 65 64 75 72 65 20 |ching pr|ocedure |
|000032e0| 65 78 70 65 63 74 73 20 | 22 6c 6f 6e 67 22 20 28 |expects |"long" (|
|000032f0| 34 2d 62 79 74 65 29 20 | 61 72 67 75 6d 65 6e 74 |4-byte) |argument|
|00003300| 73 2c 20 73 6f 20 79 6f | 75 20 73 68 6f 75 6c 64 |s, so yo|u should|
|00003310| 20 6e 6f 74 20 70 61 73 | 73 20 69 74 20 22 73 68 | not pas|s it "sh|
|00003320| 6f 72 74 22 20 28 32 2d | 62 79 74 65 29 20 69 6e |ort" (2-|byte) in|
|00003330| 74 65 67 65 72 73 2e 20 | 20 42 65 20 63 61 72 65 |tegers. | Be care|
|00003340| 66 75 6c 2c 20 69 6e 20 | 70 61 72 74 69 63 75 6c |ful, in |particul|
|00003350| 61 72 2c 20 77 68 65 6e | 20 70 61 73 73 69 6e 67 |ar, when| passing|
|00003360| 20 63 6f 6e 73 74 61 6e | 74 73 20 73 69 6e 63 65 | constan|ts since|
|00003370| 20 74 68 65 73 65 20 64 | 65 66 61 75 6c 74 20 74 | these d|efault t|
|00003380| 6f 20 73 68 6f 72 74 20 | 69 6e 74 65 67 65 72 73 |o short |integers|
|00003390| 20 75 6e 6c 65 73 73 20 | 66 6f 6c 6c 6f 77 65 64 | unless |followed|
|000033a0| 20 62 79 20 22 4c 22 3a | 0d 0d 20 20 46 61 63 65 | by "L":|.. Face|
|000033b0| 49 74 28 30 2c 44 6f 4c | 6f 6f 70 2c 30 2c 30 2c |It(0,DoL|oop,0,0,|
|000033c0| 30 2c 30 29 3b 20 20 20 | 20 20 20 20 20 20 20 2f |0,0); | /|
|000033d0| 2a 20 57 52 4f 4e 47 21 | 21 21 20 2a 2f 0d 20 20 |* WRONG!|!! */. |
|000033e0| 46 61 63 65 49 74 28 30 | 4c 2c 44 6f 4c 6f 6f 70 |FaceIt(0|L,DoLoop|
|000033f0| 2c 30 4c 2c 30 4c 2c 30 | 4c 2c 30 4c 29 3b 20 20 |,0L,0L,0|L,0L); |
|00003400| 20 20 20 2f 2a 20 52 49 | 47 48 54 21 21 21 20 2a | /* RI|GHT!!! *|
|00003410| 2f 00 00 03 6c 54 48 49 | 4e 4b 20 50 72 6f 6a 65 |/...lTHI|NK Proje|
|00003420| 63 74 73 0d 20 20 57 68 | 65 6e 20 64 65 62 75 67 |cts. Wh|en debug|
|00003430| 67 69 6e 67 20 61 20 73 | 6d 61 6c 6c 20 70 72 6f |ging a s|mall pro|
|00003440| 67 72 61 6d 20 74 68 61 | 74 20 75 73 65 73 20 46 |gram tha|t uses F|
|00003450| 61 63 65 49 74 2c 20 31 | 36 4b 20 66 6f 72 20 74 |aceIt, 1|6K for t|
|00003460| 68 65 20 73 74 61 63 6b | 20 73 69 7a 65 20 61 6e |he stack| size an|
|00003470| 64 20 35 31 32 4b 20 66 | 6f 72 20 74 68 65 20 7a |d 512K f|or the z|
|00003480| 6f 6e 65 20 73 69 7a 65 | 20 77 6f 72 6b 20 77 65 |one size| work we|
|00003490| 6c 6c 2e 20 20 54 68 65 | 72 65 20 69 73 20 6e 6f |ll. The|re is no|
|000034a0| 20 6e 65 65 64 20 74 6f | 20 70 72 6f 76 69 64 65 | need to| provide|
|000034b0| 20 74 68 65 20 70 72 6f | 6a 65 63 74 20 77 69 74 | the pro|ject wit|
|000034c0| 68 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |h the na|me of a |
|000034d0| 72 65 73 6f 75 72 63 65 | 20 66 69 6c 65 20 73 69 |resource| file si|
|000034e0| 6e 63 65 20 74 68 69 73 | 20 69 73 20 64 6f 6e 65 |nce this| is done|
|000034f0| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 69 6e 20 79 | explici|tly in y|
|00003500| 6f 75 72 20 63 6f 64 65 | 20 28 76 69 61 20 75 4e |our code| (via uN|
|00003510| 61 6d 65 29 2e 20 20 4f | 6e 65 20 69 64 69 6f 73 |ame). O|ne idios|
|00003520| 79 6e 63 72 61 63 79 20 | 74 6f 20 62 65 20 61 77 |yncracy |to be aw|
|00003530| 61 72 65 20 6f 66 20 69 | 73 20 74 68 61 74 20 79 |are of i|s that y|
|00003540| 6f 75 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 61 |ou will |not be a|
|00003550| 62 6c 65 20 74 6f 20 62 | 72 65 61 6b 20 69 6e 74 |ble to b|reak int|
|00003560| 6f 2c 20 6f 72 20 73 65 | 74 20 62 72 65 61 6b 70 |o, or se|t breakp|
|00003570| 6f 69 6e 74 73 20 69 6e | 2c 20 63 6f 64 65 20 74 |oints in|, code t|
|00003580| 68 61 74 20 62 65 6c 6f | 6e 67 73 20 74 6f 20 46 |hat belo|ngs to F|
|00003590| 61 63 65 49 74 20 6f 72 | 20 6f 74 68 65 72 20 46 |aceIt or| other F|
|000035a0| 61 63 65 57 61 72 65 20 | 6d 6f 64 75 6c 65 73 2e |aceWare |modules.|
|000035b0| 0d 20 20 49 66 20 79 6f | 75 20 63 61 6e 27 74 20 |. If yo|u can't |
|000035c0| 67 65 74 20 74 68 65 20 | 54 48 49 4e 4b 20 70 72 |get the |THINK pr|
|000035d0| 6f 6a 65 63 74 20 66 69 | 6c 65 73 20 74 6f 20 6f |oject fi|les to o|
|000035e0| 70 65 6e 20 69 74 27 73 | 20 70 72 6f 62 61 62 6c |pen it's| probabl|
|000035f0| 79 20 62 65 63 61 75 73 | 65 20 79 6f 75 20 68 61 |y becaus|e you ha|
|00003600| 76 65 20 61 6e 20 65 61 | 72 6c 69 65 72 20 76 65 |ve an ea|rlier ve|
|00003610| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 63 6f 6d |rsion of| the com|
|00003620| 70 69 6c 65 72 2e 20 20 | 53 69 6d 70 6c 79 20 63 |piler. |Simply c|
|00003630| 72 65 61 74 65 20 61 20 | 6e 65 77 20 70 72 6f 6a |reate a |new proj|
|00003640| 65 63 74 20 66 69 6c 65 | 20 61 6e 64 20 64 65 74 |ect file| and det|
|00003650| 65 72 6d 69 6e 65 20 77 | 68 69 63 68 20 66 69 6c |ermine w|hich fil|
|00003660| 65 73 20 79 6f 75 20 6e | 65 65 64 20 66 72 6f 6d |es you n|eed from|
|00003670| 20 74 68 65 20 22 69 6e | 63 6c 75 64 65 22 20 73 | the "in|clude" s|
|00003680| 74 61 74 65 6d 65 6e 74 | 73 20 6f 72 20 22 65 78 |tatement|s or "ex|
|00003690| 74 65 72 6e 61 6c 22 20 | 72 65 66 65 72 65 6e 63 |ternal" |referenc|
|000036a0| 65 73 20 69 6e 20 74 68 | 65 20 64 65 6d 6f 20 70 |es in th|e demo p|
|000036b0| 72 6f 67 72 61 6d 73 2e | 20 20 49 66 20 79 6f 75 |rograms.| If you|
|000036c0| 20 63 61 6e 6e 6f 74 20 | 63 6f 6d 70 69 6c 65 20 | cannot |compile |
|000036d0| 61 20 66 69 6c 65 20 64 | 75 65 20 74 6f 20 75 6e |a file d|ue to un|
|000036e0| 64 65 66 69 6e 65 64 20 | 74 6f 6f 6c 62 6f 78 2d |defined |toolbox-|
|000036f0| 72 65 6c 61 74 65 64 20 | 74 79 70 65 73 2c 20 65 |related |types, e|
|00003700| 69 74 68 65 72 20 69 6e | 63 6c 75 64 65 20 74 68 |ither in|clude th|
|00003710| 65 20 66 69 6c 65 73 20 | 74 68 61 74 20 64 65 66 |e files |that def|
|00003720| 69 6e 65 20 73 75 63 68 | 20 74 79 70 65 73 2c 20 |ine such| types, |
|00003730| 6f 72 20 63 68 61 6e 67 | 65 20 74 68 65 20 74 79 |or chang|e the ty|
|00003740| 70 65 73 20 74 6f 20 73 | 69 6d 70 6c 65 20 68 61 |pes to s|imple ha|
|00003750| 6e 64 6c 65 2c 20 70 6f | 69 6e 74 65 72 2c 20 6f |ndle, po|inter, o|
|00003760| 72 20 69 6e 74 65 67 65 | 72 20 74 79 70 65 73 20 |r intege|r types |
|00003770| 6f 66 20 74 68 65 20 73 | 61 6d 65 20 73 69 7a 65 |of the s|ame size|
|00003780| 2e 00 00 21 5c 41 62 73 | 6f 66 74 20 4d 61 63 46 |...!\Abs|oft MacF|
|00003790| 6f 72 74 72 61 6e 20 32 | 2e 34 0d 20 20 57 65 20 |ortran 2|.4. We |
|000037a0| 63 6f 6e 74 69 6e 75 65 | 20 74 6f 20 73 75 70 70 |continue| to supp|
|000037b0| 6f 72 74 20 74 68 65 20 | 6f 6c 64 20 4d 61 63 46 |ort the |old MacF|
|000037c0| 6f 72 74 72 61 6e 20 63 | 6f 6d 70 69 6c 65 72 20 |ortran c|ompiler |
|000037d0| 69 6e 20 72 65 63 6f 67 | 6e 69 74 69 6f 6e 20 6f |in recog|nition o|
|000037e0| 66 20 74 68 65 20 66 61 | 63 74 20 74 68 61 74 20 |f the fa|ct that |
|000037f0| 6d 61 6e 79 20 6f 66 20 | 6f 75 72 20 6f 72 69 67 |many of |our orig|
|00003800| 69 6e 61 6c 20 63 75 73 | 74 6f 6d 65 72 73 20 77 |inal cus|tomers w|
|00003810| 65 72 65 20 4d 61 63 46 | 6f 72 74 72 61 6e 20 75 |ere MacF|ortran u|
|00003820| 73 65 72 73 2e 20 20 55 | 73 65 72 73 20 6f 66 20 |sers. U|sers of |
|00003830| 4d 61 63 46 6f 72 74 72 | 61 6e 20 32 2e 34 20 73 |MacFortr|an 2.4 s|
|00003840| 68 6f 75 6c 64 2c 20 68 | 6f 77 65 76 65 72 2c 20 |hould, h|owever, |
|00003850| 62 65 20 74 68 69 6e 6b | 69 6e 67 20 61 62 6f 75 |be think|ing abou|
|00003860| 74 20 75 70 67 72 61 64 | 69 6e 67 20 74 6f 20 41 |t upgrad|ing to A|
|00003870| 62 73 6f 66 74 27 73 20 | 4d 50 57 20 4d 61 63 46 |bsoft's |MPW MacF|
|00003880| 6f 72 74 72 61 6e 20 63 | 6f 6d 70 69 6c 65 72 20 |ortran c|ompiler |
|00003890| 73 69 6e 63 65 20 69 74 | 20 63 6f 6e 74 61 69 6e |since it| contain|
|000038a0| 73 20 6d 61 6e 79 20 65 | 6e 68 61 6e 63 65 6d 65 |s many e|nhanceme|
|000038b0| 6e 74 73 20 61 6e 64 20 | 69 73 20 63 6c 65 61 72 |nts and |is clear|
|000038c0| 6c 79 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |ly the c|ompiler |
|000038d0| 74 68 61 74 20 69 73 20 | 67 65 74 74 69 6e 67 20 |that is |getting |
|000038e0| 6d 6f 73 74 20 6f 66 20 | 41 62 73 6f 66 74 27 73 |most of |Absoft's|
|000038f0| 20 61 74 74 65 6e 74 69 | 6f 6e 2e 0d 0d 45 78 61 | attenti|on...Exa|
|00003900| 6d 70 6c 65 20 50 72 6f | 67 72 61 6d 73 20 20 54 |mple Pro|grams T|
|00003910| 68 65 20 65 78 61 6d 70 | 6c 65 20 70 72 6f 67 72 |he examp|le progr|
|00003920| 61 6d 73 20 68 61 76 65 | 20 6e 65 69 74 68 65 72 |ams have| neither|
|00003930| 20 22 66 37 37 2e 72 6c | 22 20 6e 6f 72 20 61 6e | "f77.rl|" nor an|
|00003940| 79 20 73 75 62 72 6f 75 | 74 69 6e 65 73 20 6c 69 |y subrou|tines li|
|00003950| 6e 6b 65 64 20 74 6f 20 | 74 68 65 6d 2e 20 20 54 |nked to |them. T|
|00003960| 68 65 79 20 77 65 72 65 | 20 63 6f 6d 70 69 6c 65 |hey were| compile|
|00003970| 64 20 75 73 69 6e 67 20 | 4d 61 63 46 6f 72 74 72 |d using |MacFortr|
|00003980| 61 6e 20 32 2e 34 20 77 | 69 74 68 6f 75 74 20 74 |an 2.4 w|ithout t|
|00003990| 68 65 20 36 38 30 32 30 | 2f 36 38 38 38 31 20 6f |he 68020|/68881 o|
|000039a0| 70 74 69 6f 6e 73 20 73 | 65 74 20 73 6f 20 74 68 |ptions s|et so th|
|000039b0| 61 74 20 74 68 65 79 20 | 77 6f 75 6c 64 20 72 75 |at they |would ru|
|000039c0| 6e 20 6f 6e 20 61 6c 6c | 20 4d 61 63 73 2e 0d 0d |n on all| Macs...|
|000039d0| 49 6e 63 6c 75 64 65 20 | 46 69 6c 65 73 20 20 55 |Include |Files U|
|000039e0| 6e 6c 69 6b 65 20 43 20 | 61 6e 64 20 50 61 73 63 |nlike C |and Pasc|
|000039f0| 61 6c 2c 20 73 74 61 6e | 64 61 72 64 20 46 6f 72 |al, stan|dard For|
|00003a00| 74 72 61 6e 20 64 6f 65 | 73 20 6e 6f 74 20 73 75 |tran doe|s not su|
|00003a10| 70 70 6f 72 74 20 22 72 | 65 63 6f 72 64 20 74 79 |pport "r|ecord ty|
|00003a20| 70 65 73 22 2c 20 6d 61 | 6b 69 6e 67 20 69 74 20 |pes", ma|king it |
|00003a30| 63 75 6d 62 65 72 73 6f | 6d 65 20 74 6f 20 77 6f |cumberso|me to wo|
|00003a40| 72 6b 20 77 69 74 68 20 | 6d 75 6c 74 69 70 6c 65 |rk with |multiple|
|00003a50| 20 22 69 6e 73 74 61 6e | 63 65 73 22 20 6f 66 20 | "instan|ces" of |
|00003a60| 73 68 61 72 65 64 20 72 | 65 63 6f 72 64 73 2e 20 |shared r|ecords. |
|00003a70| 20 54 68 65 20 63 6c 6f | 73 65 73 74 20 61 70 70 | The clo|sest app|
|00003a80| 72 6f 78 69 6d 61 74 69 | 6f 6e 20 74 6f 20 61 20 |roximati|on to a |
|00003a90| 73 68 61 72 65 64 20 67 | 6c 6f 62 61 6c 20 72 65 |shared g|lobal re|
|00003aa0| 63 6f 72 64 20 69 73 20 | 61 20 46 6f 72 74 72 61 |cord is |a Fortra|
|00003ab0| 6e 20 63 6f 6d 6d 6f 6e | 20 62 6c 6f 63 6b 20 77 |n common| block w|
|00003ac0| 68 69 63 68 20 68 61 73 | 20 61 20 73 65 74 20 6f |hich has| a set o|
|00003ad0| 66 20 76 61 72 69 61 62 | 6c 65 73 20 65 71 75 69 |f variab|les equi|
|00003ae0| 76 61 6c 65 6e 63 65 64 | 20 74 6f 20 69 74 2e 20 |valenced| to it. |
|00003af0| 20 41 6e 20 65 78 61 6d | 70 6c 65 20 6f 66 20 73 | An exam|ple of s|
|00003b00| 75 63 68 20 61 20 62 6c | 6f 63 6b 20 63 61 6e 20 |uch a bl|ock can |
|00003b10| 62 65 20 66 6f 75 6e 64 | 20 69 6e 20 74 68 65 20 |be found| in the |
|00003b20| 22 46 61 63 65 53 74 6f | 72 4d 46 2e 69 6e 63 22 |"FaceSto|rMF.inc"|
|00003b30| 20 66 69 6c 65 20 6f 72 | 20 74 68 65 20 63 6f 72 | file or| the cor|
|00003b40| 72 65 73 70 6f 6e 64 69 | 6e 67 20 66 69 6c 65 20 |respondi|ng file |
|00003b50| 61 63 63 6f 6d 70 61 6e | 79 69 6e 67 20 6f 74 68 |accompan|ying oth|
|00003b60| 65 72 20 46 61 63 65 57 | 61 72 65 20 6d 6f 64 75 |er FaceW|are modu|
|00003b70| 6c 65 73 20 28 69 74 73 | 20 6e 61 6d 65 20 77 69 |les (its| name wi|
|00003b80| 6c 6c 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 73 |ll conta|in the s|
|00003b90| 75 62 73 74 72 69 6e 67 | 20 22 53 74 6f 72 4d 46 |ubstring| "StorMF|
|00003ba0| 22 29 2e 20 20 22 46 61 | 63 65 53 74 6f 72 4d 46 |"). "Fa|ceStorMF|
|00003bb0| 2e 69 6e 63 22 20 64 65 | 63 6c 61 72 65 73 20 70 |.inc" de|clares p|
|00003bc0| 61 72 61 6d 65 74 65 72 | 20 6e 61 6d 65 73 20 6f |arameter| names o|
|00003bd0| 66 20 63 6f 72 65 20 46 | 61 63 65 57 61 72 65 20 |f core F|aceWare |
|00003be0| 63 6f 6d 6d 61 6e 64 73 | 20 61 6e 64 20 65 73 74 |commands| and est|
|00003bf0| 61 62 6c 69 73 68 65 73 | 20 61 20 63 6f 6d 6d 6f |ablishes| a commo|
|00003c00| 6e 20 62 6c 6f 63 6b 20 | 74 68 61 74 20 63 6f 6e |n block |that con|
|00003c10| 74 61 69 6e 73 20 61 6e | 20 61 72 72 61 79 20 6e |tains an| array n|
|00003c20| 61 6d 65 64 20 22 66 52 | 65 63 22 20 61 6e 64 20 |amed "fR|ec" and |
|00003c30| 65 71 75 69 76 61 6c 65 | 6e 63 65 64 20 76 61 72 |equivale|nced var|
|00003c40| 69 61 62 6c 65 73 20 74 | 68 61 74 20 61 72 65 20 |iables t|hat are |
|00003c50| 73 68 61 72 65 64 20 77 | 69 74 68 20 74 68 65 20 |shared w|ith the |
|00003c60| 63 6f 72 65 20 46 61 63 | 65 57 61 72 65 20 6d 6f |core Fac|eWare mo|
|00003c70| 64 75 6c 65 73 2e 20 20 | 54 6f 20 6d 61 6b 65 20 |dules. |To make |
|00003c80| 75 73 65 20 6f 66 20 74 | 68 65 73 65 20 76 61 72 |use of t|hese var|
|00003c90| 69 61 62 6c 65 73 2c 20 | 74 68 65 20 66 6f 6c 6c |iables, |the foll|
|00003ca0| 6f 77 69 6e 67 20 6c 69 | 6e 65 20 73 68 6f 75 6c |owing li|ne shoul|
|00003cb0| 64 20 62 65 20 69 6e 73 | 65 72 74 65 64 20 6a 75 |d be ins|erted ju|
|00003cc0| 73 74 20 61 66 74 65 72 | 20 79 6f 75 72 20 6d 61 |st after| your ma|
|00003cd0| 69 6e 20 70 72 6f 67 72 | 61 6d 20 76 61 72 69 61 |in progr|am varia|
|00003ce0| 62 6c 65 20 64 65 63 6c | 61 72 61 74 69 6f 6e 73 |ble decl|arations|
|00003cf0| 2c 20 62 75 74 20 62 65 | 66 6f 72 65 20 74 68 65 |, but be|fore the|
|00003d00| 20 66 69 72 73 74 20 65 | 78 65 63 75 74 61 62 6c | first e|xecutabl|
|00003d10| 65 20 73 74 61 74 65 6d | 65 6e 74 3a 0d 20 20 69 |e statem|ent:. i|
|00003d20| 6e 63 6c 75 64 65 20 46 | 61 63 65 53 74 6f 72 4d |nclude F|aceStorM|
|00003d30| 46 2e 69 6e 63 0d 41 6c | 6c 20 70 72 6f 67 72 61 |F.inc.Al|l progra|
|00003d40| 6d 20 75 6e 69 74 73 20 | 77 68 69 63 68 20 64 69 |m units |which di|
|00003d50| 72 65 63 74 6c 79 20 61 | 63 63 65 73 73 20 65 6c |rectly a|ccess el|
|00003d60| 65 6d 65 6e 74 73 20 6f | 66 20 74 68 65 20 22 66 |ements o|f the "f|
|00003d70| 52 65 63 22 20 73 68 61 | 72 65 64 20 72 65 63 6f |Rec" sha|red reco|
|00003d80| 72 64 20 73 68 6f 75 6c | 64 20 61 6c 73 6f 20 63 |rd shoul|d also c|
|00003d90| 6f 6e 74 61 69 6e 20 74 | 68 65 20 61 62 6f 76 65 |ontain t|he above|
|00003da0| 20 73 74 61 74 65 6d 65 | 6e 74 2e 20 20 53 69 6e | stateme|nt. Sin|
|00003db0| 63 65 20 6e 75 6d 65 72 | 6f 75 73 20 69 6e 63 6c |ce numer|ous incl|
|00003dc0| 75 64 65 20 73 74 61 74 | 65 6d 65 6e 74 73 20 63 |ude stat|ements c|
|00003dd0| 61 6e 20 73 6c 6f 77 20 | 64 6f 77 6e 20 63 6f 6d |an slow |down com|
|00003de0| 70 69 6c 61 74 69 6f 6e | 2c 20 79 6f 75 20 6d 61 |pilation|, you ma|
|00003df0| 79 20 77 61 6e 74 20 74 | 6f 20 63 72 65 61 74 65 |y want t|o create|
|00003e00| 20 61 20 73 6d 61 6c 6c | 65 72 20 76 65 72 73 69 | a small|er versi|
|00003e10| 6f 6e 20 6f 66 20 22 46 | 61 63 65 53 74 6f 72 4d |on of "F|aceStorM|
|00003e20| 46 2e 69 6e 63 22 20 77 | 68 69 63 68 20 63 6f 6e |F.inc" w|hich con|
|00003e30| 74 61 69 6e 73 20 6f 6e | 6c 79 20 74 68 6f 73 65 |tains on|ly those|
|00003e40| 20 65 71 75 69 76 61 6c | 65 6e 63 65 20 73 74 61 | equival|ence sta|
|00003e50| 74 65 6d 65 6e 74 73 20 | 77 68 69 63 68 20 72 65 |tements |which re|
|00003e60| 66 65 72 20 74 6f 20 65 | 6c 65 6d 65 6e 74 73 20 |fer to e|lements |
|00003e70| 6f 66 20 74 68 65 20 73 | 74 6f 72 61 67 65 20 61 |of the s|torage a|
|00003e80| 72 72 61 79 20 77 68 69 | 63 68 20 79 6f 75 20 72 |rray whi|ch you r|
|00003e90| 65 66 65 72 65 6e 63 65 | 20 69 6e 20 79 6f 75 72 |eference| in your|
|00003ea0| 20 70 72 6f 67 72 61 6d | 2c 20 6f 72 20 73 69 6d | program|, or sim|
|00003eb0| 70 6c 79 20 6d 61 6b 65 | 20 74 68 65 20 6e 65 63 |ply make| the nec|
|00003ec0| 65 73 73 61 72 79 20 63 | 6f 6d 6d 6f 6e 20 62 6c |essary c|ommon bl|
|00003ed0| 6f 63 6b 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |ock decl|aration |
|00003ee0| 61 6e 64 20 65 71 75 69 | 76 61 6c 65 6e 63 65 20 |and equi|valence |
|00003ef0| 73 74 61 74 65 6d 65 6e | 74 73 20 65 78 70 6c 69 |statemen|ts expli|
|00003f00| 63 69 74 6c 79 20 69 6e | 20 79 6f 75 72 20 70 72 |citly in| your pr|
|00003f10| 6f 67 72 61 6d 20 63 6f | 64 65 2e 0d 09 54 68 65 |ogram co|de...The|
|00003f20| 20 66 69 6c 65 20 22 46 | 61 63 65 50 72 6f 63 4d | file "F|aceProcM|
|00003f30| 46 2e 69 6e 63 22 20 63 | 6f 6e 74 61 69 6e 73 20 |F.inc" c|ontains |
|00003f40| 72 6f 75 74 69 6e 65 73 | 20 77 68 69 63 68 20 61 |routines| which a|
|00003f50| 72 65 20 72 65 71 75 69 | 72 65 64 20 66 6f 72 20 |re requi|red for |
|00003f60| 6a 75 6d 70 69 6e 67 20 | 74 6f 20 46 61 63 65 57 |jumping |to FaceW|
|00003f70| 61 72 65 20 6d 6f 64 75 | 6c 65 73 2e 20 20 54 6f |are modu|les. To|
|00003f80| 20 6d 61 6b 65 20 74 68 | 65 73 65 20 72 6f 75 74 | make th|ese rout|
|00003f90| 69 6e 65 73 20 61 76 61 | 69 6c 61 62 6c 65 20 74 |ines ava|ilable t|
|00003fa0| 6f 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 2c 20 |o your p|rogram, |
|00003fb0| 69 6e 73 65 72 74 20 74 | 68 65 20 66 6f 6c 6c 6f |insert t|he follo|
|00003fc0| 77 69 6e 67 20 73 74 61 | 74 65 6d 65 6e 74 20 61 |wing sta|tement a|
|00003fd0| 73 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |s the la|st line |
|00003fe0| 6f 66 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 |of your |program |
|00003ff0| 66 69 6c 65 20 28 61 6e | 64 20 6f 66 20 61 6e 79 |file (an|d of any|
|00004000| 20 66 69 6c 65 73 20 75 | 73 65 64 20 74 6f 20 63 | files u|sed to c|
|00004010| 72 65 61 74 65 20 73 74 | 61 6e 64 2d 61 6c 6f 6e |reate st|and-alon|
|00004020| 65 2c 20 75 6e 6c 69 6e | 6b 65 64 20 73 75 62 72 |e, unlin|ked subr|
|00004030| 6f 75 74 69 6e 65 73 29 | 3a 0d 20 20 69 6e 63 6c |outines)|:. incl|
|00004040| 75 64 65 20 46 61 63 65 | 50 72 6f 63 4d 46 2e 69 |ude Face|ProcMF.i|
|00004050| 6e 63 0d 0d 57 72 69 74 | 69 6e 67 20 54 6f 20 61 |nc..Writ|ing To a|
|00004060| 6e 64 20 52 65 61 64 69 | 6e 67 20 46 72 6f 6d 20 |nd Readi|ng From |
|00004070| 55 6e 69 74 20 39 20 28 | 74 68 65 20 53 63 72 65 |Unit 9 (|the Scre|
|00004080| 65 6e 29 20 77 68 65 6e | 20 75 73 69 6e 67 20 46 |en) when| using F|
|00004090| 61 63 65 49 74 0d 49 66 | 20 79 6f 75 20 74 61 6b |aceIt.If| you tak|
|000040a0| 65 20 61 20 6c 6f 6f 6b | 20 61 74 20 74 68 65 20 |e a look| at the |
|000040b0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 22 46 61 63 |contents| of "Fac|
|000040c0| 65 50 72 6f 63 4d 46 2e | 69 6e 63 22 2c 20 79 6f |eProcMF.|inc", yo|
|000040d0| 75 27 6c 6c 20 73 65 65 | 20 74 68 61 74 20 74 68 |u'll see| that th|
|000040e0| 65 20 64 65 66 61 75 6c | 74 20 46 6f 72 74 72 61 |e defaul|t Fortra|
|000040f0| 6e 20 77 69 6e 64 6f 77 | 2c 20 69 66 20 70 72 65 |n window|, if pre|
|00004100| 73 65 6e 74 2c 20 69 73 | 20 73 69 6d 70 6c 79 20 |sent, is| simply |
|00004110| 68 69 64 64 65 6e 20 61 | 74 20 73 74 61 72 74 75 |hidden a|t startu|
|00004120| 70 20 73 69 6e 63 65 20 | 74 68 65 20 75 70 64 61 |p since |the upda|
|00004130| 74 65 20 65 76 65 6e 74 | 73 20 74 68 61 74 20 69 |te event|s that i|
|00004140| 74 20 70 72 6f 64 75 63 | 65 73 20 63 61 6e 20 63 |t produc|es can c|
|00004150| 61 75 73 65 20 70 72 6f | 62 6c 65 6d 73 20 66 6f |ause pro|blems fo|
|00004160| 72 20 46 61 63 65 49 74 | 2e 20 20 46 6f 72 74 75 |r FaceIt|. Fortu|
|00004170| 6e 61 74 65 6c 79 2c 20 | 77 68 65 6e 20 4d 61 63 |nately, |when Mac|
|00004180| 46 6f 72 74 72 61 6e 20 | 77 72 69 74 65 73 20 74 |Fortran |writes t|
|00004190| 6f 20 61 6e 64 20 72 65 | 61 64 73 20 66 72 6f 6d |o and re|ads from|
|000041a0| 20 74 68 65 20 22 73 63 | 72 65 65 6e 22 20 28 75 | the "sc|reen" (u|
|000041b0| 6e 69 74 20 39 29 20 69 | 74 20 6d 61 6b 65 73 20 |nit 9) i|t makes |
|000041c0| 75 73 65 20 6f 66 20 77 | 68 61 74 65 76 65 72 20 |use of w|hatever |
|000041d0| 77 69 6e 64 6f 77 20 69 | 73 20 74 68 65 20 63 75 |window i|s the cu|
|000041e0| 72 72 65 6e 74 20 70 6f | 72 74 2e 20 20 53 69 6e |rrent po|rt. Sin|
|000041f0| 63 65 20 46 61 63 65 49 | 74 20 61 6c 77 61 79 73 |ce FaceI|t always|
|00004200| 20 72 65 73 65 74 73 20 | 74 68 65 20 63 75 72 72 | resets |the curr|
|00004210| 65 6e 74 20 70 6f 72 74 | 20 74 6f 20 74 68 65 20 |ent port| to the |
|00004220| 61 63 74 69 76 65 20 77 | 69 6e 64 6f 77 2c 20 49 |active w|indow, I|
|00004230| 2f 4f 20 64 69 72 65 63 | 74 65 64 20 74 6f 20 75 |/O direc|ted to u|
|00004240| 6e 69 74 20 39 20 61 70 | 70 65 61 72 73 20 69 6e |nit 9 ap|pears in|
|00004250| 20 74 68 61 74 20 77 69 | 6e 64 6f 77 2e 20 20 59 | that wi|ndow. Y|
|00004260| 6f 75 20 63 61 6e 20 63 | 68 61 6e 67 65 20 74 68 |ou can c|hange th|
|00004270| 69 73 20 74 6f 20 61 6e | 79 20 6f 74 68 65 72 20 |is to an|y other |
|00004280| 77 69 6e 64 6f 77 20 28 | 61 20 6d 6f 64 65 6c 65 |window (|a modele|
|00004290| 73 73 20 64 69 61 6c 6f | 67 20 77 6f 75 6c 64 20 |ss dialo|g would |
|000042a0| 62 65 20 61 20 67 6f 6f | 64 20 63 68 6f 69 63 65 |be a goo|d choice|
|000042b0| 29 20 62 79 20 73 69 6d | 70 6c 79 20 72 65 73 65 |) by sim|ply rese|
|000042c0| 74 74 69 6e 67 20 74 68 | 65 20 63 75 72 72 65 6e |tting th|e curren|
|000042d0| 74 20 70 6f 72 74 20 75 | 73 69 6e 67 20 74 68 65 |t port u|sing the|
|000042e0| 20 74 6f 6f 6c 62 6f 78 | 20 63 61 6c 6c 20 53 45 | toolbox| call SE|
|000042f0| 54 50 4f 52 54 20 62 65 | 66 6f 72 65 20 77 72 69 |TPORT be|fore wri|
|00004300| 74 69 6e 67 20 74 6f 20 | 75 6e 69 74 20 39 2e 20 |ting to |unit 9. |
|00004310| 20 4e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 74 | Note th|at the t|
|00004320| 65 78 74 20 77 72 69 74 | 74 65 6e 20 69 6e 20 74 |ext writ|ten in t|
|00004330| 68 69 73 20 6d 61 6e 6e | 65 72 20 75 73 69 6e 67 |his mann|er using|
|00004340| 20 75 6e 69 74 20 39 20 | 77 69 6c 6c 20 6e 6f 74 | unit 9 |will not|
|00004350| 20 62 65 20 65 64 69 74 | 61 62 6c 65 2c 20 65 76 | be edit|able, ev|
|00004360| 65 6e 20 69 66 20 77 72 | 69 74 74 65 6e 20 74 6f |en if wr|itten to|
|00004370| 20 61 6e 20 65 64 69 74 | 6f 72 20 77 69 6e 64 6f | an edit|or windo|
|00004380| 77 20 28 61 20 62 61 64 | 20 69 64 65 61 29 2e 20 |w (a bad| idea). |
|00004390| 20 54 68 65 20 74 65 78 | 74 20 69 73 20 73 69 6d | The tex|t is sim|
|000043a0| 70 6c 79 20 62 65 69 6e | 67 20 64 72 61 77 6e 20 |ply bein|g drawn |
|000043b0| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 2c 20 77 |on the s|creen, w|
|000043c0| 69 74 68 20 6e 6f 20 63 | 6f 6e 6e 65 63 74 69 6f |ith no c|onnectio|
|000043d0| 6e 20 74 6f 20 74 68 65 | 20 74 65 78 74 2d 65 64 |n to the| text-ed|
|000043e0| 69 74 69 6e 67 20 6d 6f | 64 75 6c 65 2e 0d 0d 55 |iting mo|dule...U|
|000043f0| 73 69 6e 67 20 74 68 65 | 20 4d 61 63 46 6f 72 74 |sing the| MacFort|
|00004400| 72 61 6e 20 32 2e 34 20 | 44 65 62 75 67 67 65 72 |ran 2.4 |Debugger|
|00004410| 20 77 69 74 68 20 46 61 | 63 65 49 74 20 20 20 41 | with Fa|ceIt A|
|00004420| 66 74 65 72 20 73 74 61 | 72 74 69 6e 67 20 61 6e |fter sta|rting an|
|00004430| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 76 69 61 | applica|tion via|
|00004440| 20 74 68 65 20 44 65 62 | 75 67 67 65 72 2c 20 73 | the Deb|ugger, s|
|00004450| 65 74 20 62 72 65 61 6b | 70 6f 69 6e 74 73 20 77 |et break|points w|
|00004460| 69 74 68 69 6e 20 79 6f | 75 72 20 73 6f 75 72 63 |ithin yo|ur sourc|
|00004470| 65 20 77 68 65 72 65 20 | 79 6f 75 20 77 69 73 68 |e where |you wish|
|00004480| 20 74 6f 20 65 78 61 6d | 69 6e 65 20 74 68 65 20 | to exam|ine the |
|00004490| 6f 70 65 72 61 74 69 6f | 6e 20 6f 66 20 79 6f 75 |operatio|n of you|
|000044a0| 72 20 63 6f 64 65 2e 20 | 20 54 68 65 6e 20 63 68 |r code. | Then ch|
|000044b0| 6f 6f 73 65 20 22 50 72 | 6f 63 65 65 64 20 74 6f |oose "Pr|oceed to|
|000044c0| 20 42 72 65 61 6b 70 6f | 69 6e 74 22 20 74 6f 20 | Breakpo|int" to |
|000044d0| 72 75 6e 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |run your| program|
|000044e0| 20 74 6f 20 74 68 65 20 | 66 69 72 73 74 20 62 72 | to the |first br|
|000044f0| 65 61 6b 70 6f 69 6e 74 | 2e 20 20 54 68 69 73 20 |eakpoint|. This |
|00004500| 6d 61 79 2c 20 6f 66 20 | 63 6f 75 72 73 65 2c 20 |may, of |course, |
|00004510| 61 6c 73 6f 20 72 65 71 | 75 69 72 65 20 63 68 6f |also req|uire cho|
|00004520| 6f 73 69 6e 67 20 61 6e | 20 69 74 65 6d 20 66 72 |osing an| item fr|
|00004530| 6f 6d 20 6f 6e 65 20 6f | 66 20 79 6f 75 72 20 6d |om one o|f your m|
|00004540| 65 6e 75 73 20 69 66 20 | 74 68 65 20 63 6f 64 65 |enus if |the code|
|00004550| 20 69 6e 20 71 75 65 73 | 74 69 6f 6e 20 69 73 20 | in ques|tion is |
|00004560| 6f 6e 6c 79 20 65 78 65 | 63 75 74 65 64 20 69 6e |only exe|cuted in|
|00004570| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 61 20 6d | respons|e to a m|
|00004580| 65 6e 75 20 63 6f 6d 6d | 61 6e 64 2e 20 20 57 68 |enu comm|and. Wh|
|00004590| 65 6e 20 61 20 62 72 65 | 61 6b 70 6f 69 6e 74 20 |en a bre|akpoint |
|000045a0| 69 73 20 65 6e 63 6f 75 | 6e 74 65 72 65 64 2c 20 |is encou|ntered, |
|000045b0| 74 68 65 20 4d 61 63 20 | 77 69 6c 6c 20 62 65 65 |the Mac |will bee|
|000045c0| 70 20 61 6e 64 20 74 68 | 65 20 44 65 62 75 67 67 |p and th|e Debugg|
|000045d0| 65 72 20 73 6f 75 72 63 | 65 20 77 69 6e 64 6f 77 |er sourc|e window|
|000045e0| 20 77 69 6c 6c 20 62 65 | 20 62 72 6f 75 67 68 74 | will be| brought|
|000045f0| 20 74 6f 20 74 68 65 20 | 66 72 6f 6e 74 2e 20 20 | to the |front. |
|00004600| 49 66 20 74 68 65 72 65 | 20 69 73 20 6f 6e 6c 79 |If there| is only|
|00004610| 20 6f 6e 65 20 62 72 65 | 61 6b 70 6f 69 6e 74 20 | one bre|akpoint |
|00004620| 73 65 74 20 69 6e 20 79 | 6f 75 72 20 63 6f 64 65 |set in y|our code|
|00004630| 2c 20 64 6f 20 6e 6f 74 | 20 63 68 6f 6f 73 65 20 |, do not| choose |
|00004640| 22 50 72 6f 63 65 65 64 | 20 74 6f 20 42 72 65 61 |"Proceed| to Brea|
|00004650| 6b 70 6f 69 6e 74 22 20 | 61 67 61 69 6e 20 77 69 |kpoint" |again wi|
|00004660| 74 68 6f 75 74 20 64 6f | 69 6e 67 20 61 74 20 6c |thout do|ing at l|
|00004670| 65 61 73 74 20 6f 6e 65 | 20 22 53 69 6e 67 6c 65 |east one| "Single|
|00004680| 20 53 74 65 70 22 2e 20 | 20 54 68 65 20 44 65 62 | Step". | The Deb|
|00004690| 75 67 67 65 72 20 6c 6f | 73 65 73 20 74 72 61 63 |ugger lo|ses trac|
|000046a0| 6b 20 6f 66 20 61 20 62 | 72 65 61 6b 70 6f 69 6e |k of a b|reakpoin|
|000046b0| 74 20 69 66 20 61 73 6b | 65 64 20 74 6f 20 70 72 |t if ask|ed to pr|
|000046c0| 6f 63 65 65 64 20 69 6e | 20 61 20 6c 6f 6f 70 20 |oceed in| a loop |
|000046d0| 66 72 6f 6d 20 61 20 62 | 72 65 61 6b 70 6f 69 6e |from a b|reakpoin|
|000046e0| 74 20 62 61 63 6b 20 74 | 6f 20 74 68 65 20 73 61 |t back t|o the sa|
|000046f0| 6d 65 20 62 72 65 61 6b | 70 6f 69 6e 74 2e 0d 09 |me break|point...|
|00004700| 57 68 69 6c 65 20 69 6e | 20 74 68 65 20 44 65 62 |While in| the Deb|
|00004710| 75 67 67 65 72 2c 20 74 | 68 65 20 44 65 62 75 67 |ugger, t|he Debug|
|00004720| 67 65 72 27 73 20 6b 65 | 79 62 6f 61 72 64 20 73 |ger's ke|yboard s|
|00004730| 68 6f 72 74 63 75 74 73 | 20 6d 61 79 20 63 6f 6e |hortcuts| may con|
|00004740| 66 6c 69 63 74 20 77 69 | 74 68 20 6b 65 79 62 6f |flict wi|th keybo|
|00004750| 61 72 64 20 63 6f 6d 6d | 61 6e 64 73 20 77 68 69 |ard comm|ands whi|
|00004760| 63 68 20 61 70 70 65 61 | 72 20 69 6e 20 74 68 65 |ch appea|r in the|
|00004770| 20 46 61 63 65 49 74 20 | 6d 65 6e 75 73 20 6f 72 | FaceIt |menus or|
|00004780| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 6d 65 | your pr|ogram me|
|00004790| 6e 75 73 2c 20 69 6e 20 | 77 68 69 63 68 20 63 61 |nus, in |which ca|
|000047a0| 73 65 20 79 6f 75 20 6d | 61 79 20 73 69 6d 70 6c |se you m|ay simpl|
|000047b0| 79 20 68 61 76 65 20 74 | 6f 20 75 73 65 20 74 68 |y have t|o use th|
|000047c0| 65 20 6d 6f 75 73 65 20 | 74 6f 20 63 68 6f 6f 73 |e mouse |to choos|
|000047d0| 65 20 74 68 65 20 61 66 | 66 65 63 74 65 64 20 6d |e the af|fected m|
|000047e0| 65 6e 75 20 69 74 65 6d | 2e 20 20 20 46 69 6e 61 |enu item|. Fina|
|000047f0| 6c 6c 79 2c 20 74 68 65 | 20 44 65 62 75 67 67 65 |lly, the| Debugge|
|00004800| 72 20 69 74 73 65 6c 66 | 20 72 65 71 75 69 72 65 |r itself| require|
|00004810| 73 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 73 74 61 |s additi|onal sta|
|00004820| 63 6b 20 73 70 61 63 65 | 2c 20 6d 65 61 6e 69 6e |ck space|, meanin|
|00004830| 67 20 74 68 61 74 20 79 | 6f 75 20 6d 61 79 20 6e |g that y|ou may n|
|00004840| 65 65 64 20 74 6f 20 69 | 6e 63 72 65 61 73 65 20 |eed to i|ncrease |
|00004850| 74 68 65 20 73 74 61 63 | 6b 20 73 70 61 63 65 20 |the stac|k space |
|00004860| 66 6f 72 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |for your| program|
|00004870| 20 74 6f 20 67 65 74 20 | 69 74 20 74 6f 20 72 75 | to get |it to ru|
|00004880| 6e 20 70 72 6f 70 65 72 | 6c 79 20 75 6e 64 65 72 |n proper|ly under|
|00004890| 20 74 68 65 20 44 65 62 | 75 67 67 65 72 2e 0d 0d | the Deb|ugger...|
|000048a0| 4f 74 68 65 72 20 50 72 | 6f 67 72 61 6d 6d 69 6e |Other Pr|ogrammin|
|000048b0| 67 20 54 69 70 73 0d 0d | 2d 20 57 68 65 6e 20 70 |g Tips..|- When p|
|000048c0| 72 61 63 74 69 63 61 6c | 2c 20 75 73 65 20 22 69 |ractical|, use "i|
|000048d0| 6d 70 6c 69 63 69 74 20 | 6e 6f 6e 65 22 2e 0d 0d |mplicit |none"...|
|000048e0| 2d 20 42 6f 74 68 20 73 | 6f 75 72 63 65 20 61 6e |- Both s|ource an|
|000048f0| 64 20 64 61 74 61 20 66 | 69 6c 65 73 20 73 68 6f |d data f|iles sho|
|00004900| 75 6c 64 20 65 6e 64 20 | 77 69 74 68 20 61 20 63 |uld end |with a c|
|00004910| 61 72 72 69 61 67 65 20 | 72 65 74 75 72 6e 2e 0d |arriage |return..|
|00004920| 0d 2d 20 41 20 63 6f 6d | 6d 6f 6e 20 6d 69 73 74 |.- A com|mon mist|
|00004930| 61 6b 65 20 77 68 65 6e | 20 6d 61 6b 69 6e 67 20 |ake when| making |
|00004940| 22 74 6f 6f 6c 62 78 22 | 20 63 61 6c 6c 73 20 69 |"toolbx"| calls i|
|00004950| 73 20 74 6f 20 66 6f 72 | 67 65 74 20 74 6f 20 64 |s to for|get to d|
|00004960| 65 66 69 6e 65 20 74 68 | 65 20 76 61 6c 75 65 20 |efine th|e value |
|00004970| 6f 66 20 74 68 65 20 69 | 6e 74 65 67 65 72 20 63 |of the i|nteger c|
|00004980| 6f 6e 73 74 61 6e 74 20 | 75 73 65 64 20 61 73 20 |onstant |used as |
|00004990| 74 68 65 20 74 6f 6f 6c | 62 6f 78 20 70 72 6f 63 |the tool|box proc|
|000049a0| 65 64 75 72 65 20 6e 61 | 6d 65 2e 20 20 41 6e 6f |edure na|me. Ano|
|000049b0| 74 68 65 72 20 6d 69 73 | 74 61 6b 65 20 69 73 20 |ther mis|take is |
|000049c0| 74 6f 20 66 6f 72 67 65 | 74 20 74 6f 20 64 65 63 |to forge|t to dec|
|000049d0| 6c 61 72 65 20 22 74 6f | 6f 6c 62 78 22 20 61 73 |lare "to|olbx" as|
|000049e0| 20 69 6e 74 65 67 65 72 | 2a 34 20 77 68 65 6e 20 | integer|*4 when |
|000049f0| 22 74 6f 6f 6c 62 78 22 | 20 69 73 20 62 65 69 6e |"toolbx"| is bein|
|00004a00| 67 20 75 73 65 64 20 61 | 73 20 61 20 66 75 6e 63 |g used a|s a func|
|00004a10| 74 69 6f 6e 2e 0d 0d 2d | 20 57 68 65 6e 20 46 61 |tion...-| When Fa|
|00004a20| 63 65 49 74 20 69 73 20 | 66 69 72 73 74 20 63 61 |ceIt is |first ca|
|00004a30| 6c 6c 65 64 2c 20 79 6f | 75 20 68 61 76 65 20 74 |lled, yo|u have t|
|00004a40| 68 65 20 6f 70 74 69 6f | 6e 20 6f 66 20 68 61 76 |he optio|n of hav|
|00004a50| 69 6e 67 20 69 74 20 64 | 69 73 70 6c 61 79 20 61 |ing it d|isplay a|
|00004a60| 20 22 64 65 63 6b 20 6f | 66 20 63 61 72 64 73 22 | "deck o|f cards"|
|00004a70| 20 63 75 72 73 6f 72 20 | 77 68 65 6e 65 76 65 72 | cursor |whenever|
|00004a80| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 68 61 | your pr|ogram ha|
|00004a90| 73 20 63 6f 6e 74 72 6f | 6c 2e 20 20 54 68 69 73 |s contro|l. This|
|00004aa0| 20 69 73 20 76 65 72 79 | 20 75 73 65 66 75 6c 20 | is very| useful |
|00004ab0| 77 68 65 6e 2c 20 66 6f | 72 20 65 78 61 6d 70 6c |when, fo|r exampl|
|00004ac0| 65 2c 20 61 20 46 6f 72 | 74 72 61 6e 20 65 72 72 |e, a For|tran err|
|00004ad0| 6f 72 20 6f 63 63 75 72 | 73 20 77 69 74 68 69 6e |or occur|s within|
|00004ae0| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 73 69 | your pr|ogram si|
|00004af0| 6e 63 65 20 79 6f 75 20 | 69 6d 6d 65 64 69 61 74 |nce you |immediat|
|00004b00| 65 6c 79 20 6b 6e 6f 77 | 2c 20 62 79 20 74 68 65 |ely know|, by the|
|00004b10| 20 66 6f 72 6d 20 6f 66 | 20 74 68 65 20 63 75 72 | form of| the cur|
|00004b20| 73 6f 72 2c 20 74 68 61 | 74 20 74 68 65 20 65 72 |sor, tha|t the er|
|00004b30| 72 6f 72 20 69 73 20 73 | 6f 6d 65 77 68 65 72 65 |ror is s|omewhere|
|00004b40| 20 69 6e 20 79 6f 75 72 | 20 63 6f 64 65 20 61 6e | in your| code an|
|00004b50| 64 20 6e 6f 74 20 77 69 | 74 68 69 6e 20 46 61 63 |d not wi|thin Fac|
|00004b60| 65 49 74 2e 20 20 57 68 | 65 6e 20 73 75 63 68 20 |eIt. Wh|en such |
|00004b70| 61 20 46 6f 72 74 72 61 | 6e 20 65 72 72 6f 72 20 |a Fortra|n error |
|00004b80| 6f 63 63 75 72 73 2c 20 | 70 72 65 73 73 69 6e 67 |occurs, |pressing|
|00004b90| 20 74 68 65 20 72 65 74 | 75 72 6e 20 6b 65 79 20 | the ret|urn key |
|00004ba0| 77 69 6c 6c 20 75 73 75 | 61 6c 6c 79 20 74 61 6b |will usu|ally tak|
|00004bb0| 65 20 79 6f 75 20 62 61 | 63 6b 20 74 6f 20 74 68 |e you ba|ck to th|
|00004bc0| 65 20 46 69 6e 64 65 72 | 2e 0d 0d 2d 20 49 66 20 |e Finder|...- If |
|00004bd0| 75 73 69 6e 67 20 53 65 | 6c 65 63 74 20 43 61 73 |using Se|lect Cas|
|00004be0| 65 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 62 65 |e, you s|hould be|
|00004bf0| 20 61 77 61 72 65 20 6f | 66 20 74 68 65 20 66 61 | aware o|f the fa|
|00004c00| 63 74 20 74 68 61 74 20 | 74 68 65 20 63 75 72 72 |ct that |the curr|
|00004c10| 65 6e 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 4d |ent vers|ion of M|
|00004c20| 61 63 46 6f 72 74 72 61 | 6e 20 6c 69 6d 69 74 73 |acFortra|n limits|
|00004c30| 20 79 6f 75 20 74 6f 20 | 33 32 4b 20 6f 66 20 63 | you to |32K of c|
|00004c40| 6f 64 65 20 70 65 72 20 | 53 65 6c 65 63 74 20 43 |ode per |Select C|
|00004c50| 61 73 65 20 62 6c 6f 63 | 6b 2e 0d 0d 2d 20 54 68 |ase bloc|k...- Th|
|00004c60| 65 20 63 6f 6d 70 69 6c | 65 72 20 77 69 6c 6c 20 |e compil|er will |
|00004c70| 6e 6f 74 20 63 61 74 63 | 68 20 61 20 6d 69 73 74 |not catc|h a mist|
|00004c80| 61 6b 65 6e 20 6e 75 6d | 62 65 72 20 6f 66 20 61 |aken num|ber of a|
|00004c90| 72 67 75 6d 65 6e 74 73 | 20 70 61 73 73 65 64 20 |rguments| passed |
|00004ca0| 74 6f 20 61 20 73 75 62 | 72 6f 75 74 69 6e 65 2e |to a sub|routine.|
|00004cb0| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 22 | For ex|ample, "|
|00004cc0| 63 61 6c 6c 20 46 61 63 | 65 49 74 28 30 2c 44 6f |call Fac|eIt(0,Do|
|00004cd0| 49 6e 69 74 2c 30 2c 30 | 2c 30 29 22 20 5b 35 20 |Init,0,0|,0)" [5 |
|00004ce0| 61 72 67 75 6d 65 6e 74 | 73 20 72 61 74 68 65 72 |argument|s rather|
|00004cf0| 20 74 68 61 6e 20 36 5d | 20 77 6f 75 6c 64 20 67 | than 6]| would g|
|00004d00| 65 74 20 62 79 20 74 68 | 65 20 63 6f 6d 70 69 6c |et by th|e compil|
|00004d10| 65 72 2c 20 62 75 74 20 | 77 69 6c 6c 20 6c 65 61 |er, but |will lea|
|00004d20| 64 20 74 6f 20 75 6e 70 | 72 65 64 69 63 74 61 62 |d to unp|redictab|
|00004d30| 6c 65 20 62 65 68 61 76 | 69 6f 72 20 6f 66 20 79 |le behav|ior of y|
|00004d40| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 28 70 72 6f |our prog|ram (pro|
|00004d50| 62 61 62 6c 79 20 61 20 | 63 72 61 73 68 29 2e 20 |bably a |crash). |
|00004d60| 20 53 6f 20 63 6f 75 6e | 74 20 74 68 6f 73 65 20 | So coun|t those |
|00004d70| 61 72 67 75 6d 65 6e 74 | 73 21 0d 0d 2d 20 49 66 |argument|s!..- If|
|00004d80| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 77 6f | your pr|ogram wo|
|00004d90| 72 6b 73 20 75 6e 64 65 | 72 20 73 6f 6d 65 20 73 |rks unde|r some s|
|00004da0| 74 61 72 74 75 70 20 63 | 6f 6e 64 69 74 69 6f 6e |tartup c|ondition|
|00004db0| 73 2c 20 6f 72 20 6f 6e | 20 73 6f 6d 65 20 4d 61 |s, or on| some Ma|
|00004dc0| 63 73 2c 20 62 75 74 20 | 6e 6f 74 20 6f 74 68 65 |cs, but |not othe|
|00004dd0| 72 73 2c 20 74 68 65 6e | 20 6c 6f 6f 6b 20 66 69 |rs, then| look fi|
|00004de0| 72 73 74 20 66 6f 72 20 | 61 6e 20 75 6e 69 6e 69 |rst for |an unini|
|00004df0| 74 69 61 6c 69 7a 65 64 | 20 76 61 72 69 61 62 6c |tialized| variabl|
|00004e00| 65 2e 20 20 56 61 72 69 | 61 62 6c 65 73 20 61 72 |e. Vari|ables ar|
|00004e10| 65 20 6e 6f 74 20 7a 65 | 72 6f 65 64 20 61 74 20 |e not ze|roed at |
|00004e20| 6c 61 75 6e 63 68 20 74 | 69 6d 65 2c 20 61 6e 64 |launch t|ime, and|
|00004e30| 20 77 69 6c 6c 20 61 63 | 71 75 69 72 65 20 74 68 | will ac|quire th|
|00004e40| 65 20 76 61 6c 75 65 20 | 6f 66 20 77 68 61 74 65 |e value |of whate|
|00004e50| 76 65 72 20 67 61 72 62 | 61 67 65 20 69 73 20 73 |ver garb|age is s|
|00004e60| 69 74 74 69 6e 67 20 69 | 6e 20 6d 65 6d 6f 72 79 |itting i|n memory|
|00004e70| 20 75 6e 6c 65 73 73 20 | 79 6f 75 20 74 61 6b 65 | unless |you take|
|00004e80| 20 74 68 65 20 74 72 6f | 75 62 6c 65 20 74 6f 20 | the tro|uble to |
|00004e90| 69 6e 69 74 69 61 6c 69 | 7a 65 20 74 68 65 6d 2e |initiali|ze them.|
|00004ea0| 0d 0d 2d 20 4d 61 63 46 | 6f 72 74 72 61 6e 20 64 |..- MacF|ortran d|
|00004eb0| 6f 65 73 20 6e 6f 74 20 | 67 75 61 72 61 6e 74 65 |oes not |guarante|
|00004ec0| 65 20 74 68 61 74 20 73 | 74 72 69 6e 67 73 20 64 |e that s|trings d|
|00004ed0| 65 63 6c 61 72 65 64 20 | 69 6e 20 73 75 62 72 6f |eclared |in subro|
|00004ee0| 75 74 69 6e 65 73 20 77 | 69 6c 6c 20 62 65 20 77 |utines w|ill be w|
|00004ef0| 6f 72 64 2d 61 6c 69 67 | 6e 65 64 20 6f 6e 20 74 |ord-alig|ned on t|
|00004f00| 68 65 20 73 74 61 63 6b | 20 28 72 65 71 75 69 72 |he stack| (requir|
|00004f10| 65 64 20 62 79 20 74 6f | 6f 6c 62 6f 78 20 63 61 |ed by to|olbox ca|
|00004f20| 6c 6c 73 20 77 68 69 63 | 68 20 61 63 63 65 70 74 |lls whic|h accept|
|00004f30| 20 73 74 72 69 6e 67 73 | 20 61 73 20 61 72 67 75 | strings| as argu|
|00004f40| 6d 65 6e 74 73 29 2e 20 | 20 49 66 20 79 6f 75 20 |ments). | If you |
|00004f50| 75 73 65 20 73 75 63 68 | 20 73 74 72 69 6e 67 73 |use such| strings|
|00004f60| 20 69 6e 20 74 6f 6f 6c | 62 6f 78 20 63 61 6c 6c | in tool|box call|
|00004f70| 73 2c 20 79 6f 75 27 6c | 6c 20 67 65 74 20 73 74 |s, you'l|l get st|
|00004f80| 72 61 6e 67 65 20 62 65 | 68 61 76 69 6f 72 20 6c |range be|havior l|
|00004f90| 69 6b 65 20 74 68 61 74 | 20 73 65 65 6e 20 77 69 |ike that| seen wi|
|00004fa0| 74 68 20 75 6e 69 6e 69 | 74 69 61 6c 69 7a 65 64 |th unini|tialized|
|00004fb0| 20 76 61 72 69 61 62 6c | 65 73 2e 20 20 54 68 65 | variabl|es. The|
|00004fc0| 20 77 6f 72 6b 61 72 6f | 75 6e 64 20 69 73 20 74 | workaro|und is t|
|00004fd0| 6f 20 61 6c 77 61 79 73 | 20 75 73 65 20 67 6c 6f |o always| use glo|
|00004fe0| 62 61 6c 20 73 74 72 69 | 6e 67 20 76 61 72 69 61 |bal stri|ng varia|
|00004ff0| 62 6c 65 73 20 61 73 20 | 70 61 72 61 6d 65 74 65 |bles as |paramete|
|00005000| 72 73 20 69 6e 20 74 6f | 6f 6c 62 6f 78 20 63 61 |rs in to|olbox ca|
|00005010| 6c 6c 73 20 28 73 74 72 | 69 6e 67 73 20 64 65 63 |lls (str|ings dec|
|00005020| 6c 61 72 65 64 20 69 6e | 20 79 6f 75 72 20 6d 61 |lared in| your ma|
|00005030| 69 6e 20 70 72 6f 67 72 | 61 6d 20 75 6e 69 74 29 |in progr|am unit)|
|00005040| 2e 20 54 68 65 20 22 75 | 53 74 72 69 6e 67 22 20 |. The "u|String" |
|00005050| 61 6e 64 20 22 75 4e 61 | 6d 65 22 20 76 61 72 69 |and "uNa|me" vari|
|00005060| 61 62 6c 65 73 2c 20 66 | 6f 72 20 65 78 61 6d 70 |ables, f|or examp|
|00005070| 6c 65 2c 20 61 72 65 20 | 67 6c 6f 62 61 6c 2c 20 |le, are |global, |
|00005080| 61 6e 64 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |and can |be used |
|00005090| 62 79 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 20 |by your |program |
|000050a0| 66 6f 72 20 69 74 73 20 | 6f 77 6e 20 70 75 72 70 |for its |own purp|
|000050b0| 6f 73 65 73 2c 20 6f 6e | 65 20 6f 66 20 77 68 69 |oses, on|e of whi|
|000050c0| 63 68 20 6d 61 79 20 62 | 65 20 74 6f 20 65 6e 73 |ch may b|e to ens|
|000050d0| 75 72 65 20 74 68 61 74 | 20 73 74 72 69 6e 67 73 |ure that| strings|
|000050e0| 20 69 6e 20 74 6f 6f 6c | 62 6f 78 20 63 61 6c 6c | in tool|box call|
|000050f0| 73 20 61 72 65 20 77 6f | 72 64 2d 61 6c 69 67 6e |s are wo|rd-align|
|00005100| 65 64 2e 20 20 54 68 65 | 20 6d 6f 73 74 20 6c 69 |ed. The| most li|
|00005110| 6b 65 6c 79 20 70 6c 61 | 63 65 20 74 68 61 74 20 |kely pla|ce that |
|00005120| 79 6f 75 27 6c 6c 20 62 | 65 20 75 73 69 6e 67 20 |you'll b|e using |
|00005130| 73 75 63 68 20 74 6f 6f | 6c 62 6f 78 20 63 61 6c |such too|lbox cal|
|00005140| 6c 73 20 69 73 20 69 6e | 20 70 6c 6f 74 74 69 6e |ls is in| plottin|
|00005150| 67 20 72 6f 75 74 69 6e | 65 73 20 74 68 61 74 20 |g routin|es that |
|00005160| 6d 61 6b 65 20 63 61 6c | 6c 73 20 74 6f 20 22 53 |make cal|ls to "S|
|00005170| 54 52 49 4e 47 57 49 44 | 54 48 22 20 61 6e 64 20 |TRINGWID|TH" and |
|00005180| 22 44 52 41 57 53 54 52 | 49 4e 47 22 2e 0d 0d 2d |"DRAWSTR|ING"...-|
|00005190| 20 54 68 65 20 74 6f 6f | 6c 62 6f 78 20 63 61 6c | The too|lbox cal|
|000051a0| 6c 20 22 46 4c 55 53 48 | 45 56 45 4e 54 53 22 20 |l "FLUSH|EVENTS" |
|000051b0| 69 73 20 69 6e 63 6f 72 | 72 65 63 74 6c 79 20 64 |is incor|rectly d|
|000051c0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 74 68 65 |ocumente|d in the|
|000051d0| 20 4d 61 63 46 6f 72 74 | 72 61 6e 20 69 6e 63 6c | MacFort|ran incl|
|000051e0| 75 64 65 20 66 69 6c 65 | 73 2e 20 20 46 6f 72 20 |ude file|s. For |
|000051f0| 61 6e 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 69 74 |an examp|le of it|
|00005200| 73 20 70 72 6f 70 65 72 | 20 75 73 65 2c 20 73 65 |s proper| use, se|
|00005210| 65 20 74 68 65 20 69 6e | 63 6c 75 64 65 20 66 69 |e the in|clude fi|
|00005220| 6c 65 20 22 46 61 63 65 | 50 72 6f 63 4d 46 2e 69 |le "Face|ProcMF.i|
|00005230| 6e 63 22 2e 0d 0d 2d 20 | 49 66 20 75 73 69 6e 67 |nc"...- |If using|
|00005240| 20 45 64 69 74 20 74 6f | 20 65 64 69 74 20 79 6f | Edit to| edit yo|
|00005250| 75 72 20 70 72 6f 67 72 | 61 6d 73 2c 20 79 6f 75 |ur progr|ams, you|
|00005260| 20 63 61 6e 20 6d 69 73 | 74 61 6b 65 6e 6c 79 20 | can mis|takenly |
|00005270| 74 79 70 65 20 74 68 65 | 20 22 45 6e 74 65 72 22 |type the| "Enter"|
|00005280| 20 6b 65 79 20 77 68 69 | 63 68 20 69 6e 73 65 72 | key whi|ch inser|
|00005290| 74 73 20 61 6e 20 69 6e | 76 69 73 69 62 6c 65 20 |ts an in|visible |
|000052a0| 63 68 61 72 61 63 74 65 | 72 20 74 68 61 74 20 77 |characte|r that w|
|000052b0| 69 6c 6c 20 6c 61 74 65 | 72 20 63 61 75 73 65 20 |ill late|r cause |
|000052c0| 70 72 6f 62 6c 65 6d 73 | 20 77 69 74 68 20 74 68 |problems| with th|
|000052d0| 65 20 4d 61 63 46 6f 72 | 74 72 61 6e 20 63 6f 6d |e MacFor|tran com|
|000052e0| 70 69 6c 65 72 2e 20 20 | 55 73 65 20 45 64 69 74 |piler. |Use Edit|
|000052f0| 27 73 20 22 53 68 6f 77 | 20 49 6e 76 69 73 69 62 |'s "Show| Invisib|
|00005300| 6c 65 73 22 20 6f 70 74 | 69 6f 6e 20 74 6f 20 66 |les" opt|ion to f|
|00005310| 69 6e 64 20 61 6e 64 20 | 65 6c 69 6d 69 6e 61 74 |ind and |eliminat|
|00005320| 65 20 73 75 63 68 20 63 | 68 61 72 61 63 74 65 72 |e such c|haracter|
|00005330| 73 2e 0d 0d 2d 20 4d 61 | 63 46 6f 72 74 72 61 6e |s...- Ma|cFortran|
|00005340| 20 64 6f 65 73 20 6e 6f | 74 20 61 6c 6c 6f 77 20 | does no|t allow |
|00005350| 79 6f 75 20 74 6f 20 70 | 61 73 73 20 69 6e 74 65 |you to p|ass inte|
|00005360| 67 65 72 20 63 6f 6e 73 | 74 61 6e 74 73 20 74 6f |ger cons|tants to|
|00005370| 20 69 6e 74 65 67 65 72 | 2a 32 20 73 75 62 72 6f | integer|*2 subro|
|00005380| 75 74 69 6e 65 20 61 72 | 67 75 6d 65 6e 74 73 2c |utine ar|guments,|
|00005390| 20 73 6f 20 75 73 65 20 | 69 6e 74 65 67 65 72 2a | so use |integer*|
|000053a0| 34 20 77 68 65 6e 20 70 | 61 73 73 69 6e 67 20 63 |4 when p|assing c|
|000053b0| 6f 6e 73 74 61 6e 74 73 | 2e 0d 0d 2d 20 57 68 65 |onstants|...- Whe|
|000053c0| 6e 20 70 61 73 73 69 6e | 67 20 76 61 72 69 61 62 |n passin|g variab|
|000053d0| 6c 65 73 20 74 6f 20 73 | 75 62 72 6f 75 74 69 6e |les to s|ubroutin|
|000053e0| 65 73 2c 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |es, the |variable|
|000053f0| 73 20 4d 55 53 54 20 62 | 65 20 72 65 64 65 63 6c |s MUST b|e redecl|
|00005400| 61 72 65 64 20 77 69 74 | 68 69 6e 20 74 68 65 20 |ared wit|hin the |
|00005410| 73 75 62 72 6f 75 74 69 | 6e 65 73 20 6f 72 20 74 |subrouti|nes or t|
|00005420| 68 65 79 20 77 69 6c 6c | 20 62 65 20 67 69 76 65 |hey will| be give|
|00005430| 6e 20 75 6e 64 65 66 69 | 6e 65 64 20 76 61 6c 75 |n undefi|ned valu|
|00005440| 65 73 2e 20 20 54 68 69 | 73 20 65 72 72 6f 72 20 |es. Thi|s error |
|00005450| 69 73 20 4e 4f 54 20 63 | 61 75 67 68 74 20 62 79 |is NOT c|aught by|
|00005460| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 2c 20 65 | the com|piler, e|
|00005470| 76 65 6e 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 |ven if y|ou have |
|00005480| 74 61 6b 65 6e 20 74 68 | 65 20 74 72 6f 75 62 6c |taken th|e troubl|
|00005490| 65 20 74 6f 20 75 73 65 | 20 22 69 6d 70 6c 69 63 |e to use| "implic|
|000054a0| 69 74 20 6e 6f 6e 65 22 | 20 69 6e 20 74 68 65 20 |it none"| in the |
|000054b0| 73 75 62 72 6f 75 74 69 | 6e 65 2e 0d 0d 2d 20 57 |subrouti|ne...- W|
|000054c0| 68 65 6e 20 63 61 6c 6c | 69 6e 67 20 75 6e 6c 69 |hen call|ing unli|
|000054d0| 6e 6b 65 64 2c 20 73 74 | 61 6e 64 2d 61 6c 6f 6e |nked, st|and-alon|
|000054e0| 65 20 73 75 62 72 6f 75 | 74 69 6e 65 73 20 79 6f |e subrou|tines yo|
|000054f0| 75 20 6d 61 79 20 66 69 | 6e 64 20 74 68 61 74 20 |u may fi|nd that |
|00005500| 4d 61 63 46 6f 72 74 72 | 61 6e 20 77 69 6c 6c 20 |MacFortr|an will |
|00005510| 6c 6f 73 65 20 74 72 61 | 63 6b 20 6f 66 20 74 68 |lose tra|ck of th|
|00005520| 65 20 6c 6f 63 61 74 69 | 6f 6e 20 6f 66 20 73 75 |e locati|on of su|
|00005530| 63 68 20 72 6f 75 74 69 | 6e 65 73 20 69 66 20 74 |ch routi|nes if t|
|00005540| 68 65 20 75 73 65 72 2c | 20 76 69 61 20 61 20 46 |he user,| via a F|
|00005550| 69 6c 65 20 6d 65 6e 75 | 20 63 6f 6d 6d 61 6e 64 |ile menu| command|
|00005560| 2c 20 68 61 73 20 63 68 | 61 6e 67 65 64 20 74 68 |, has ch|anged th|
|00005570| 65 20 64 65 66 61 75 6c | 74 20 76 6f 6c 75 6d 65 |e defaul|t volume|
|00005580| 20 62 79 20 6f 70 65 6e | 69 6e 67 20 6f 72 20 73 | by open|ing or s|
|00005590| 61 76 69 6e 67 20 66 69 | 6c 65 73 2e 20 20 54 68 |aving fi|les. Th|
|000055a0| 65 20 73 6f 6c 75 74 69 | 6f 6e 20 28 73 68 6f 72 |e soluti|on (shor|
|000055b0| 74 20 6f 66 20 6c 69 6e | 6b 69 6e 67 29 20 69 73 |t of lin|king) is|
|000055c0| 20 66 6f 72 20 79 6f 75 | 20 74 6f 20 72 65 73 65 | for you| to rese|
|000055d0| 74 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 76 6f |t the de|fault vo|
|000055e0| 6c 75 6d 65 20 62 65 66 | 6f 72 65 20 63 61 6c 6c |lume bef|ore call|
|000055f0| 69 6e 67 20 73 75 63 68 | 20 73 75 62 72 6f 75 74 |ing such| subrout|
|00005600| 69 6e 65 73 2e 20 20 28 | 59 6f 75 20 63 61 6e 20 |ines. (|You can |
|00005610| 61 6c 73 6f 20 74 72 79 | 20 70 75 74 74 69 6e 67 |also try| putting|
|00005620| 20 74 68 65 20 73 75 62 | 72 6f 75 74 69 6e 65 73 | the sub|routines|
|00005630| 20 69 6e 20 74 68 65 20 | 61 63 74 69 76 65 20 53 | in the |active S|
|00005640| 79 73 74 65 6d 20 46 6f | 6c 64 65 72 2c 20 62 75 |ystem Fo|lder, bu|
|00005650| 74 20 74 68 69 73 20 69 | 73 20 6e 6f 74 20 66 6f |t this i|s not fo|
|00005660| 6f 6c 70 72 6f 6f 66 2e | 29 20 20 59 6f 75 20 63 |olproof.|) You c|
|00005670| 61 6e 20 64 6f 20 74 68 | 69 73 20 76 69 61 20 74 |an do th|is via t|
|00005680| 68 65 20 55 74 69 6c 49 | 74 20 63 6f 6d 6d 61 6e |he UtilI|t comman|
|00005690| 64 20 22 53 65 74 52 65 | 66 22 2e 0d 0d 2d 20 54 |d "SetRe|f"...- T|
|000056a0| 68 65 20 6c 69 6e 6b 69 | 6e 67 20 61 6e 64 20 72 |he linki|ng and r|
|000056b0| 65 73 6f 75 72 63 65 20 | 6d 6f 76 65 6d 65 6e 74 |esource |movement|
|000056c0| 20 72 65 71 75 69 72 65 | 64 20 74 6f 20 63 72 65 | require|d to cre|
|000056d0| 61 74 65 20 61 20 22 73 | 74 61 6e 64 2d 61 6c 6f |ate a "s|tand-alo|
|000056e0| 6e 65 22 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ne" appl|ication |
|000056f0| 61 72 65 20 6f 75 74 6c | 69 6e 65 64 20 62 65 6c |are outl|ined bel|
|00005700| 6f 77 2e 20 20 59 6f 75 | 20 63 61 6e 20 64 6f 20 |ow. You| can do |
|00005710| 73 6f 6d 65 20 6f 72 20 | 61 6c 6c 20 6f 66 20 74 |some or |all of t|
|00005720| 68 65 20 73 74 65 70 73 | 20 6f 75 74 6c 69 6e 65 |he steps| outline|
|00005730| 64 2c 20 62 75 74 20 74 | 68 65 79 20 6d 75 73 74 |d, but t|hey must|
|00005740| 20 62 65 20 64 6f 6e 65 | 20 69 6e 20 74 68 69 73 | be done| in this|
|00005750| 20 6f 72 64 65 72 2e 0d | 20 31 2e 20 72 65 63 6f | order..| 1. reco|
|00005760| 6d 70 69 6c 65 20 70 72 | 6f 67 72 61 6d 20 77 2f |mpile pr|ogram w/|
|00005770| 6f 20 22 6c 6f 61 64 22 | 20 63 6f 6d 6d 61 6e 64 |o "load"| command|
|00005780| 73 20 66 6f 72 20 72 6f | 75 74 69 6e 65 73 20 74 |s for ro|utines t|
|00005790| 6f 20 62 65 20 6c 69 6e | 6b 65 64 0d 20 32 2e 20 |o be lin|ked. 2. |
|000057a0| 69 6e 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |in the f|ollowing|
|000057b0| 20 6f 72 64 65 72 2c 20 | 6c 69 6e 6b 20 73 6f 6d | order, |link som|
|000057c0| 65 20 6f 72 20 61 6c 6c | 20 6f 66 3a 20 20 70 72 |e or all| of: pr|
|000057d0| 6f 67 72 61 6d 2d 73 70 | 65 63 69 66 69 63 20 73 |ogram-sp|ecific s|
|000057e0| 75 62 72 6f 75 74 69 6e | 65 73 20 28 69 66 20 61 |ubroutin|es (if a|
|000057f0| 6e 79 29 2c 20 22 4a 75 | 6d 70 49 74 2e 73 75 62 |ny), "Ju|mpIt.sub|
|00005800| 22 2c 20 22 74 6f 6f 6c | 62 78 2e 73 75 62 22 2c |", "tool|bx.sub",|
|00005810| 20 61 6e 64 20 65 69 74 | 68 65 72 20 22 66 37 37 | and eit|her "f77|
|00005820| 2e 72 6c 22 20 6f 72 20 | 22 6d 38 31 2e 72 6c 22 |.rl" or |"m81.rl"|
|00005830| 20 28 75 73 65 20 22 79 | 22 20 6c 69 6e 6b 65 72 | (use "y|" linker|
|00005840| 20 6f 70 74 69 6f 6e 20 | 74 6f 20 67 65 74 20 74 | option |to get t|
|00005850| 68 65 20 72 75 6e 74 69 | 6d 65 20 6c 69 62 72 61 |he runti|me libra|
|00005860| 72 79 20 6c 69 6e 6b 65 | 64 29 0d 20 33 2e 20 75 |ry linke|d). 3. u|
|00005870| 73 65 20 4d 6f 76 65 49 | 74 20 74 6f 20 6d 6f 76 |se MoveI|t to mov|
|00005880| 65 20 46 61 63 65 57 61 | 72 65 20 72 65 73 6f 75 |e FaceWa|re resou|
|00005890| 72 63 65 73 20 74 6f 20 | 70 72 6f 67 72 61 6d 20 |rces to |program |
|000058a0| 66 69 6c 65 0d 20 34 2e | 20 75 73 65 20 52 65 73 |file. 4.| use Res|
|000058b0| 45 64 69 74 20 74 6f 20 | 61 64 64 20 74 68 65 20 |Edit to |add the |
|000058c0| 72 65 73 6f 75 72 63 65 | 73 20 66 72 6f 6d 20 79 |resource|s from y|
|000058d0| 6f 75 72 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |our reso|urce fil|
|000058e0| 65 00 00 02 32 00 1c 00 | 00 00 00 00 10 00 0c 00 |e...2...|........|
|000058f0| 03 03 00 00 0c 00 00 00 | 00 00 00 00 00 00 07 00 |........|........|
|00005900| 0d 00 0a 00 03 03 00 00 | 0a 00 00 00 00 00 00 00 |........|........|
|00005910| 00 00 08 00 0d 00 0a 00 | 03 04 00 00 0a 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 1e 00 | 0d 00 0a 00 03 00 00 00 |........|........|
|00005930| 0a 00 00 00 00 00 00 00 | 00 00 20 00 0d 00 0a 00 |........|.. .....|
|00005940| 03 00 44 00 0a 00 00 00 | 00 00 00 00 00 02 63 00 |..D.....|......c.|
|00005950| 0b 00 09 00 04 04 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|00005960| 00 02 71 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |..q.....|..D.....|
|00005970| 00 00 00 00 00 02 78 00 | 0b 00 09 00 04 04 44 00 |......x.|......D.|
|00005980| 09 00 00 00 00 00 00 00 | 00 02 79 00 0b 00 09 00 |........|..y.....|
|00005990| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 02 82 00 |..D.....|........|
|000059a0| 0b 00 09 00 04 04 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|000059b0| 00 02 89 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|000059c0| 00 00 00 00 00 02 90 00 | 0b 00 09 00 04 04 44 00 |........|......D.|
|000059d0| 09 00 00 00 00 00 00 00 | 00 02 97 00 0b 00 09 00 |........|........|
|000059e0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 05 19 00 |..D.....|........|
|000059f0| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005a00| 00 05 1a 00 0d 00 0a 00 | 03 04 44 00 0a 00 00 00 |........|..D.....|
|00005a10| 00 00 00 00 00 05 25 00 | 0d 00 0a 00 03 00 44 00 |......%.|......D.|
|00005a20| 0a 00 00 00 00 00 00 00 | 00 08 44 00 0d 00 0a 00 |........|..D.....|
|00005a30| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 08 47 00 |..D.....|......G.|
|00005a40| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005a50| 00 09 27 00 0d 00 0a 00 | 03 03 44 00 0a 00 00 00 |..'.....|..D.....|
|00005a60| 00 00 00 00 00 09 32 00 | 0d 00 0a 00 03 00 44 00 |......2.|......D.|
|00005a70| 0a 00 00 00 00 00 00 00 | 00 09 c8 00 0d 00 0a 00 |........|........|
|00005a80| 03 03 44 00 0a 00 00 00 | 00 00 00 00 00 09 d3 00 |..D.....|........|
|00005a90| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005aa0| 00 0a 68 00 0d 00 0a 00 | 03 04 44 00 0a 00 00 00 |..h.....|..D.....|
|00005ab0| 00 00 00 00 00 0a 77 00 | 0d 00 0a 00 03 00 44 00 |......w.|......D.|
|00005ac0| 0a 00 00 00 00 00 00 00 | 00 0b 6a 00 0d 00 0a 00 |........|..j.....|
|00005ad0| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 0b 74 00 |..D.....|......t.|
|00005ae0| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005af0| 00 0c 5d 00 0d 00 0a 00 | 03 02 44 00 0a 00 00 00 |..].....|..D.....|
|00005b00| 00 00 00 00 00 0c 60 00 | 0d 00 0a 00 03 00 44 00 |......`.|......D.|
|00005b10| 0a 00 00 00 00 00 00 00 | 00 00 b6 00 09 00 00 00 |........|........|
|00005b20| 00 00 10 00 0c 00 03 03 | 00 00 0c 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 08 00 0d 00 | 0a 00 03 03 00 00 0a 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 09 00 0d 00 0a 00 03 00 |........|........|
|00005b50| 00 00 0a 00 00 00 00 00 | 00 00 00 00 0b 00 0d 00 |........|........|
|00005b60| 0a 00 03 00 44 00 0a 00 | 00 00 00 00 00 00 00 01 |....D...|........|
|00005b70| 39 00 0b 00 09 00 04 00 | 44 00 09 00 00 00 00 00 |9.......|D.......|
|00005b80| 00 00 00 01 3a 00 0b 00 | 09 00 04 04 44 00 09 00 |....:...|....D...|
|00005b90| 00 00 00 00 00 00 00 01 | 42 00 0b 00 09 00 04 00 |........|B.......|
|00005ba0| 44 00 09 00 00 00 00 00 | 00 00 00 01 45 00 0b 00 |D.......|....E...|
|00005bb0| 09 00 04 04 44 00 09 00 | 00 00 00 00 00 00 00 01 |....D...|........|
|00005bc0| 62 00 0b 00 09 00 04 00 | 44 00 09 00 00 00 00 00 |b.......|D.......|
|00005bd0| 00 00 00 06 ba 00 56 00 | 00 00 00 00 10 00 0c 00 |......V.|........|
|00005be0| 03 03 00 00 0c 00 00 00 | 00 00 00 00 00 00 07 00 |........|........|
|00005bf0| 0d 00 0a 00 03 03 00 00 | 0a 00 00 00 00 00 00 00 |........|........|
|00005c00| 00 00 08 00 0d 00 0a 00 | 03 00 00 00 0a 00 00 00 |........|........|
|00005c10| 00 00 00 00 00 00 0a 00 | 0d 00 0a 00 03 04 00 00 |........|........|
|00005c20| 0a 00 00 00 00 00 00 00 | 00 00 16 00 0d 00 0a 00 |........|........|
|00005c30| 03 00 00 00 0a 00 00 00 | 00 00 00 00 00 00 18 00 |........|........|
|00005c40| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005c50| 00 03 59 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |..Y.....|..D.....|
|00005c60| 00 00 00 00 00 03 5f 00 | 0d 00 0a 00 03 00 44 00 |......_.|......D.|
|00005c70| 0a 00 00 00 00 00 00 00 | 00 09 cf 00 0d 00 0a 00 |........|........|
|00005c80| 03 04 44 00 0a 00 00 00 | 00 00 00 00 00 09 ef 00 |..D.....|........|
|00005c90| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005ca0| 00 0b 22 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |..".....|..D.....|
|00005cb0| 00 00 00 00 00 0b 28 00 | 0d 00 0a 00 03 00 44 00 |......(.|......D.|
|00005cc0| 0a 00 00 00 00 00 00 00 | 00 0b 2d 00 0d 00 0a 00 |........|..-.....|
|00005cd0| 03 01 44 00 0a 00 00 00 | 00 00 00 00 00 0b 33 00 |..D.....|......3.|
|00005ce0| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005cf0| 00 0b 88 00 0d 00 0a 00 | 03 04 44 00 0a 00 00 00 |........|..D.....|
|00005d00| 00 00 00 00 00 0b 8f 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005d10| 0a 00 00 00 00 00 00 00 | 00 0c 79 00 0b 00 09 00 |........|..y.....|
|00005d20| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 0c d9 00 |..D.....|........|
|00005d30| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005d40| 00 0d 19 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |........|..D.....|
|00005d50| 00 00 00 00 00 0d 1d 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005d60| 0a 00 00 00 00 00 00 00 | 00 0d 20 00 0d 00 0a 00 |........|.. .....|
|00005d70| 03 01 44 00 0a 00 00 00 | 00 00 00 00 00 0d 25 00 |..D.....|......%.|
|00005d80| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005d90| 00 0d 5b 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |..[.....|..D.....|
|00005da0| 00 00 00 00 00 0d 64 00 | 0b 00 09 00 04 01 44 00 |......d.|......D.|
|00005db0| 09 00 00 00 00 00 00 00 | 00 0d 69 00 0b 00 09 00 |........|..i.....|
|00005dc0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 0d 88 00 |..D.....|........|
|00005dd0| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005de0| 00 0d 93 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|00005df0| 00 00 00 00 00 0d 9c 00 | 0b 00 09 00 04 01 44 00 |........|......D.|
|00005e00| 09 00 00 00 00 00 00 00 | 00 0d a1 00 0b 00 09 00 |........|........|
|00005e10| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 0d b6 00 |..D.....|........|
|00005e20| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005e30| 00 0e 3b 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |..;.....|..D.....|
|00005e40| 00 00 00 00 00 0e 40 00 | 0d 00 0a 00 03 00 44 00 |......@.|......D.|
|00005e50| 0a 00 00 00 00 00 00 00 | 00 0e 42 00 0b 00 09 00 |........|..B.....|
|00005e60| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 0e 4a 00 |..D.....|......J.|
|00005e70| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|00005e80| 00 0e 4f 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |..O.....|..D.....|
|00005e90| 00 00 00 00 00 0e 94 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005ea0| 0a 00 00 00 00 00 00 00 | 00 0f b2 00 0d 00 0a 00 |........|........|
|00005eb0| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 0f b9 00 |..D.....|........|
|00005ec0| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005ed0| 00 0f d8 00 0d 00 0a 00 | 03 04 44 00 0a 00 00 00 |........|..D.....|
|00005ee0| 00 00 00 00 00 0f de 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005ef0| 0a 00 00 00 00 00 00 00 | 00 10 95 00 0b 00 09 00 |........|........|
|00005f00| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 10 d1 00 |..D.....|........|
|00005f10| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|00005f20| 00 10 d6 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|00005f30| 00 00 00 00 00 10 f4 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005f40| 0a 00 00 00 00 00 00 00 | 00 11 46 00 0d 00 0a 00 |........|..F.....|
|00005f50| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 11 4a 00 |..D.....|......J.|
|00005f60| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00005f70| 00 14 0a 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |........|..D.....|
|00005f80| 00 00 00 00 00 14 0f 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00005f90| 0a 00 00 00 00 00 00 00 | 00 14 2b 00 0b 00 09 00 |........|..+.....|
|00005fa0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 14 3d 00 |..D.....|......=.|
|00005fb0| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|00005fc0| 00 14 42 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |..B.....|..D.....|
|00005fd0| 00 00 00 00 00 14 62 00 | 0b 00 09 00 04 01 44 00 |......b.|......D.|
|00005fe0| 09 00 00 00 00 00 00 00 | 00 14 67 00 0b 00 09 00 |........|..g.....|
|00005ff0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 14 74 00 |..D.....|......t.|
|00006000| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00006010| 00 15 86 00 0d 00 0a 00 | 03 04 44 00 0a 00 00 00 |........|..D.....|
|00006020| 00 00 00 00 00 15 87 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00006030| 0a 00 00 00 00 00 00 00 | 00 15 b8 00 0d 00 0a 00 |........|........|
|00006040| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 15 c1 00 |..D.....|........|
|00006050| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00006060| 00 16 c9 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|00006070| 00 00 00 00 00 16 d2 00 | 0b 00 09 00 04 01 44 00 |........|......D.|
|00006080| 09 00 00 00 00 00 00 00 | 00 16 d7 00 0b 00 09 00 |........|........|
|00006090| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 17 0b 00 |..D.....|........|
|000060a0| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|000060b0| 00 17 10 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|000060c0| 00 00 00 00 00 17 35 00 | 0d 00 0a 00 03 00 44 00 |......5.|......D.|
|000060d0| 0a 00 00 00 00 00 00 00 | 00 18 08 00 0b 00 09 00 |........|........|
|000060e0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 18 42 00 |..D.....|......B.|
|000060f0| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|00006100| 00 18 47 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |..G.....|..D.....|
|00006110| 00 00 00 00 00 18 73 00 | 0d 00 0a 00 03 00 44 00 |......s.|......D.|
|00006120| 0a 00 00 00 00 00 00 00 | 00 18 90 00 0d 00 0a 00 |........|........|
|00006130| 03 01 44 00 0a 00 00 00 | 00 00 00 00 00 18 95 00 |..D.....|........|
|00006140| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00006150| 00 18 b9 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|00006160| 00 00 00 00 00 18 bc 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00006170| 0a 00 00 00 00 00 00 00 | 00 1a 3e 00 0d 00 0a 00 |........|..>.....|
|00006180| 03 02 44 00 0a 00 00 00 | 00 00 00 00 00 1a 45 00 |..D.....|......E.|
|00006190| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|000061a0| 00 1c c6 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |........|..D.....|
|000061b0| 00 00 00 00 00 1c cb 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|000061c0| 0a 00 00 00 00 00 00 00 | 00 1c d1 00 0b 00 09 00 |........|........|
|000061d0| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 1c da 00 |..D.....|........|
|000061e0| 0b 00 09 00 04 01 44 00 | 09 00 00 00 00 00 00 00 |......D.|........|
|000061f0| 00 1c df 00 0b 00 09 00 | 04 00 44 00 09 00 00 00 |........|..D.....|
|00006200| 00 00 00 00 00 1c fa 00 | 0b 00 09 00 04 01 44 00 |........|......D.|
|00006210| 09 00 00 00 00 00 00 00 | 00 1c ff 00 0b 00 09 00 |........|........|
|00006220| 04 00 44 00 09 00 00 00 | 00 00 00 00 00 1d 12 00 |..D.....|........|
|00006230| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00006240| 00 1d 1a 00 0d 00 0a 00 | 03 01 44 00 0a 00 00 00 |........|..D.....|
|00006250| 00 00 00 00 00 1d 1f 00 | 0d 00 0a 00 03 00 44 00 |........|......D.|
|00006260| 0a 00 00 00 00 00 00 00 | 00 1d 9b 00 0d 00 0a 00 |........|........|
|00006270| 03 01 44 00 0a 00 00 00 | 00 00 00 00 00 1d a0 00 |..D.....|........|
|00006280| 0d 00 0a 00 03 00 44 00 | 0a 00 00 00 00 00 00 00 |......D.|........|
|00006290| 00 00 f2 00 0c 00 00 00 | 00 00 10 00 0c 00 03 03 |........|........|
|000062a0| 00 00 0c 00 00 00 00 00 | 00 00 00 00 11 00 0d 00 |........|........|
|000062b0| 0a 00 03 03 00 00 0a 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 12 00 0d 00 0a 00 03 00 | 00 00 0a 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 08 d4 00 0b 00 | 09 00 04 00 00 00 09 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 08 | f3 00 0d 00 0a 00 03 00 |........|........|
|000062f0| 00 00 0a 00 00 00 00 00 | 00 00 00 09 64 00 0b 00 |........|....d...|
|00006300| 09 00 04 00 00 00 09 00 | 00 00 00 00 00 00 00 09 |........|........|
|00006310| 81 00 0d 00 0a 00 03 00 | 00 00 0a 00 00 00 00 00 |........|........|
|00006320| 00 00 00 0a 5c 00 0b 00 | 09 00 04 00 00 00 09 00 |....\...|........|
|00006330| 00 00 00 00 00 00 00 0a | 7b 00 0d 00 0a 00 03 00 |........|{.......|
|00006340| 00 00 0a 00 00 00 00 00 | 00 00 00 0a 9c 00 0b 00 |........|........|
|00006350| 09 00 04 00 00 00 09 00 | 00 00 00 00 00 00 00 0a |........|........|
|00006360| b9 00 0d 00 0a 00 03 00 | 00 00 0a 00 00 00 00 00 |........|........|
|00006370| 00 00 00 0d 34 00 0b 00 | 09 00 04 00 00 00 09 00 |....4...|........|
|00006380| 00 00 00 00 00 00 00 00 | 66 00 05 00 00 00 00 00 |........|f.......|
|00006390| 10 00 0c 00 03 03 00 00 | 0c 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 0e 00 0d 00 0a 00 | 03 03 00 00 0a 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 0f 00 | 0d 00 0a 00 03 00 00 00 |........|........|
|000063c0| 0a 00 00 00 00 00 00 00 | 00 00 f9 00 0d 00 0a 00 |........|........|
|000063d0| 03 01 00 00 0a 00 00 00 | 00 00 00 00 00 00 fe 00 |........|........|
|000063e0| 0d 00 0a 00 03 00 00 00 | 0a 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 02 96 00 21 00 00 00 | 00 00 10 00 0c 00 03 03 |....!...|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.